You can make a listbox on your form and have the query set as the rowsource for the listbox, then when you click the button to "search", refresh the listbox. Is this what you're trying to do?
Hence my answer, have your switchboard open the form, which has the listbox on it. Then the user will have a form with the data. Am I missing something?
PS - this is the format for opening a query from code:
DoCmd.OpenQuery "MyQueryName", acNormal, acReadOnly
Joe Miller
joe.miller@flotech.net
When you create the form, use the form wizard. In the box where you choose the table or query the form is based on, select your query. Continue creating and formating the form until it looks the way you want it. Each time you open the form it will automatically run the query it is based on. The form will only have access to the data in the query results. If you want the data filtered differently each time you run it, I would suggest your query contain parameter(s) to prompt the user for the correct data values to report.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.