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!

drop down box for criteria 1

Status
Not open for further replies.

gray78

Programmer
Feb 3, 2005
78
US
Currently I have a report that when I run it, it askes for criteria(facility). I would like to replace this with a dropdown box, is this possible and if so....how?

Thanks
 
You would have to create a form containing a combo box which listed your options and set your report query to use that form/combo as the parameter.
 
did not work, can you explain with a bit more detail.

Thanks
 
If you create a form containing the combo, the query parameter (criteria cell) then refers to the combo:

forms!myformname!mycomboboxname
If you open the report from a button on the form this ensures the form is open when the report runs.

What does 'not working' mean?
 
still cannot create the dropdown box to select facility from
 
It should be right there on your toolbox, just below Toggle Button, and just left of ListBox.

I don't think you're understanding what he's saying. To make a combo box, you have to forget about using the easy parameters that Access does automaticly. You'll have to acutally manually (ie, use Wizards to) make a form.

If you need help on how to make a form, or how to setup the combo box, reply.

-------------------------
Just call me Captain Awesome.
 
i have done everything and still when I run the report i do not get a dropdown list with the parameter i want. The reprot just runs with all data
 
You must run the report using a button on the form containing the combo box.
You open the form, choose the value from the drop-down list and then click the button to run the report.
 
Gray78,
Consider reviewing this tutorial
Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
It sounds kind of like the report is being run from a query and in the QBE for the query the Facility column doesn't have the location of the column selected. I.e., If your pulling from a Teachers table, (Name,Facility), in QBE, Facility is in the columns to display, however, the location of facility is not, therefor QBE is asking. Am I close?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top