In
ABM said:
Is there a command that will turn on/off events? Specifically I want
to turn off the On Current event until a search is complete.
The Current event will fire whenever a new record becomes current on the
form. You can't stop it. However, you can have your code choose
whether or not to respond to it. For example, you can set a
module-level variable when you start your search, and clear it when your
search is over. Then the code in the Current event procedure can check
that variable to decide whether or not to to do whatever it is that it
would normally do.
If you don't mind my asking, what kind of search are you doing, that is
going to cause the Current event to fire while it's going on?