G
Guest
In a module for a form load event, I have the following line of code:
rs.Open "Case", CurrentProject.Connection, adOpenDynamic
"Case" is the name of a query in the .mdb the module is part of. This worked
fine until I changed one of the criteria fields to prompt for a parameter.
Now when I load the form I get an error and it does not prompt for the
parameter. What do I have to do special to make it prompt for the parameter
from code just like it does when I run the query in Access or I could make my
own MsgBox prompt but then how do I specify the parameter when opening that
query?
- Tom
rs.Open "Case", CurrentProject.Connection, adOpenDynamic
"Case" is the name of a query in the .mdb the module is part of. This worked
fine until I changed one of the criteria fields to prompt for a parameter.
Now when I load the form I get an error and it does not prompt for the
parameter. What do I have to do special to make it prompt for the parameter
from code just like it does when I run the query in Access or I could make my
own MsgBox prompt but then how do I specify the parameter when opening that
query?
- Tom