I’d like to use a find on a form, and undertake some processing between the find() and the search() functions.
However once the Find() is fired, if the Enter Key is pressed the Search runs automatically - I did’nt get the chance to run my code!
I could use a dedicated search form (with no recordset) and simply run the search using that criteria - but if there is a way to trap the enter key and avoid the search() being fired before I want it to be that would give me the best resolution!
just attach the method you want to fire to the ‘onSearch’ property of your form.
You could use a global method ‘onSearch’ which you can attach to every form.
Within this global method, run your global criteria.
For any form you could run specific criteria if there are any. Create a method for this particular form ‘onPreSearch’.
Within the global method you could check the existance of this particular method like:
just attach the method you want to fire to the ‘onSearch’ property of your form.
You could use a global method ‘onSearch’ which you can attach to every form.
Within this global method, run your global criteria.
For any form you could run specific criteria if there are any. Create a method for this particular form ‘onPreSearch’.
Within the global method you could check the existance of this particular method like: