Here’s one for you.
I have a form that is entered as defined by the Start up procedures (ie. automatically when the DB is first fired up).
This form is unbound but there is a Command Button that fires up a procedure that uses a query as part of a recordset, etc. This query also uses Functions that are defined under the Modules tab as Public functions. One of these functions is called ‘NumberofWins’.
I get the following problem if I place a line of code to run the Command Button in the OnActivate event of the form (I have tried the OnOpen, OnLoad, OnCurrent events as well, but they all result in the following error):
Run-Time Error 3085
Undefined Function ‘NumberofWins’ in expression.
If I run the form from the Database window it runs ok.
Help.
Pat