Good day everyone,
I have a database with 2 main forms. The first form is used to add records to the database and contains a command button that opens the 2nd form for records searching.
On the second form I have tow combo boxes that I would like to search from. Currently, I just have the search button run a query which opens in a separate screen. This is the same for both combo boxes (they are independent of each other). I would like to have the results open on the form in a subform but before I can do that I need to be able to view only certain results. What I want is for the command button to run a query that only displays results that match the text in the combo box. When I try to limit that results to that I get no results returned. If I just run the query without any qualifying where clause I get everything in the query just fine.
After I get that fixed I want to display the results in a subform on my search form. Is any of this possible?
Any help would be greatly appreciated.
Thank you,
Doug
I have a database with 2 main forms. The first form is used to add records to the database and contains a command button that opens the 2nd form for records searching.
On the second form I have tow combo boxes that I would like to search from. Currently, I just have the search button run a query which opens in a separate screen. This is the same for both combo boxes (they are independent of each other). I would like to have the results open on the form in a subform but before I can do that I need to be able to view only certain results. What I want is for the command button to run a query that only displays results that match the text in the combo box. When I try to limit that results to that I get no results returned. If I just run the query without any qualifying where clause I get everything in the query just fine.
After I get that fixed I want to display the results in a subform on my search form. Is any of this possible?
Any help would be greatly appreciated.
Thank you,
Doug
Comment