I am trying to make a parameter query that uses a dialog box to get criteria from user input. I have a query that simply has 3 fields – Company, Target, and Notes. I want to filter the Target field on the query.
I’ve created a dialog box that is bound to the query. It is named “Company Target Query”. I’ve put a field on the box bound to Target, I’ve named the control Target.
The problem is when I put the expression Forms![Company Target Query]![Target] into the criteria of the query. As soon as I moved out of the criteria field or run the query Access insists on putting brackets around the word Forms, so that I get a parameter dialog box instead of my custom dialog box. It’s driving me insane. I’ve tried variations on almost all the options (renaming the control on the form, renaming the form, using the word FORM instead of FORMS, etc.) I can’t make it work.
Any suggestions would be greatly appreciated. I’m using Access 2k SR1. Thanks.