T
Tom McMillion
I created a new command button on a form using the
following procedure to run a parameter query:
In form design view, clicked on Command Button on the
Toolbox. Then clicked in the design grid to place the
button. Chose category: Miscellaneous Actions: Run
Query. Chose the Query to be run.
This simple query has a prompt telling the user to enter
the customer ID to search for, then looks up that
customer from a simple two-field customer table. This
query runs fine by itself, but the query will not run
from the command button. The following error message is
returned:
"The expression On Click you entered as the event
property setting produced the following error: Invalid
outside procedure
* The expression may not result in the name of a macro,
the name of a user-defined function, or [Event Procedure].
* There may have been an error evaluating the function,
event, or macro."
Any thoughts? Seems so simple that it ought to work but
it doesn't.
following procedure to run a parameter query:
In form design view, clicked on Command Button on the
Toolbox. Then clicked in the design grid to place the
button. Chose category: Miscellaneous Actions: Run
Query. Chose the Query to be run.
This simple query has a prompt telling the user to enter
the customer ID to search for, then looks up that
customer from a simple two-field customer table. This
query runs fine by itself, but the query will not run
from the command button. The following error message is
returned:
"The expression On Click you entered as the event
property setting produced the following error: Invalid
outside procedure
* The expression may not result in the name of a macro,
the name of a user-defined function, or [Event Procedure].
* There may have been an error evaluating the function,
event, or macro."
Any thoughts? Seems so simple that it ought to work but
it doesn't.