Hi I have a form based on an underlying query and this query prompts for 2 pieces of information before the form opens.
I have created a custom dialog box which I want to use instead of one of the default dialog boxes the query pops up. I have tried placing a reference to the form in the criteria cell of the required field in the query but it doesn't seem to work.
The reference is right, I'm sure of that. For example it might be:
Forms![some_form]![some control]
When I now try and open the form the query runs as usual and I still get a default prompt with "Forms![some_form]![some_control]" as the text.
What am I doing wrong and also what code do I put in the ok button to pass the information back to the query?
Thanks,
Liam
I have created a custom dialog box which I want to use instead of one of the default dialog boxes the query pops up. I have tried placing a reference to the form in the criteria cell of the required field in the query but it doesn't seem to work.
The reference is right, I'm sure of that. For example it might be:
Forms![some_form]![some control]
When I now try and open the form the query runs as usual and I still get a default prompt with "Forms![some_form]![some_control]" as the text.
What am I doing wrong and also what code do I put in the ok button to pass the information back to the query?
Thanks,
Liam