Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using A Listbox As Criteria For A Query

Status
Not open for further replies.

Lee24

Programmer
Apr 11, 2001
103
GB
Want to display a list box for some reports within. Let the user click on one or several have a button that will link directly to the appropraite reports!

All comments welcome!

 
If the report name is the same as the selection within the listbox, then

DoCmd.OpenReport ListboxName.SelText 'No quotes

If the selections are different from the report names, then use "case" statements and surround the report names with quotes.

mac318
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top