Hi,
Could someone please let me know what I'm doing wrong?
I have a form, which uses a query to show only records labeled as "Draft" - and that works. On the form, I want to build the button, which would be connected to another query and when clicked only records labeled as "Final" would be displayed.
Here is the code for the button:
DoCmd.OpenQuery "FinalRecords", acViewNormal, acReadOnly
I'm not sure if I need anything else to add to above code in order to make this button working.
Any suggestion is appreciated.
Thanks,
-f
Could someone please let me know what I'm doing wrong?
I have a form, which uses a query to show only records labeled as "Draft" - and that works. On the form, I want to build the button, which would be connected to another query and when clicked only records labeled as "Final" would be displayed.
Here is the code for the button:
DoCmd.OpenQuery "FinalRecords", acViewNormal, acReadOnly
I'm not sure if I need anything else to add to above code in order to make this button working.
Any suggestion is appreciated.
Thanks,
-f