Using a form to set query parameters

chrisuff

New member
Local time
Today, 20:50
Joined
May 18, 2009
Messages
7
I am trying to create a form (in accrss 2003) where users can select information between 2 dates and then specify other criteria to narrow the search.
The form has 2 combo boxes with calendars that sets start and end dates and a command button runs a query refering to them as
Between [Forms]![Form1]![StartDate] And [Forms]![Form1]![EndDate]
This runs fine.
The other criteria are curently set by other combo boxes on the form. Since there are about 70 criteria, the combo box looks up values in a table. I want the query to looks up the value that is selected in the combo box. The combo box is unbound.
I have tried this: [Forms]![Form2]![Combo0] in the Criteria box but it gives no results.

Please help!
 
For anyone reading this, I have just found the answer: add & "*" onto the end and it runs perfectly!
eg
[Forms]![Form2]![Combo0] & "*"
 

Users who are viewing this thread

Back
Top Bottom