set event programmatically on office 365

Copper Contributor

Hi all!


I have a old access mdb that sets onenter programmatically to a procedure on the same form with the simple code:



In office 365 doesn't work. (can't find Control_Enter).

What I've tried:

- control.OnEnter="Control_Enter".

- control.OnEnter="Control_Enter()"

- Set the procedure to a Function.

- move the procedure/function from the form to a code module.

- Set the function in the designer instead of code. it appears on the list box to be selected but doesn't find it anyway in runtime.

Any sugestions?







1 Reply
for now, I'm setting all the controls in the design to "[event procedure]" where I call Control_Enter. A little repetitive :( , but it works :)