Filtering by a combo box

Dave H

Registered User.
Local time
Today, 17:46
Joined
Jan 18, 2006
Messages
42
I have a main form which has a combo box which the user selects a value. Then I have 3 buttons, depending which button the user clicks it takes them to another form that would be filtered by the selection of the combo box. I have a query set up with the criteria as [Forms]![Form1]![cbo3]. When I choose a value in the combox box then click the button which has a macro to open the form I get a text box. If I then type the value in the textbox the form opens filtered correctly. How do I get the query to recognize the value selected in the combo box?
 
You're not closing the first form, are you? It has to be open for the query to get the value. If it is open, double check the spelling of the control.
 
The 1st form remains open, I used the expression builder to get the control name. I'm stumped. ??
 
If you open the query directly from the database window, with the form open and a selection made, does it prompt you then?
 
Yes, it still gives me the Enter Parameter Value textbox.
 
Then the reference to the form/control is somehow wrong. Can you post a sample db?
 
What is the process for posting the sample database?
 
Compact it, zip it and attach it. It has to be under 393k once zipped. You have to be in the advanced reply mode to see the "Manage Attachments" button.
 
I start with the form switchboard choose from the combo box then click the button federal.
 

Attachments

That is weird. I wonder if that form is corrupt. I created another one and the same technique worked fine. Try that first, and I'm going to play with this when I get time and see if I can figure anything else out.
 
I tried creating a new form and got the same result. Would you mind posting the one that you got to work and maybe I can figure out what the difference is. Thanks
 

Users who are viewing this thread

Back
Top Bottom