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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo on a report

Status
Not open for further replies.

SheepDog

Programmer
Feb 4, 2003
232
US
I would like to put a combo box on a report based off a query so when I made a selection from the combo it would display that info based upon the criteria selected.
I have never done this with a report and would like some help/suggestions.
 
You should put the combo box on a form. Then you can put a button on the form to launch the report. Use something like this for the OnClick event of the button:

DoCmd.OpenReport "YourReportName", acViewPreview, , "YourField = '" & cboYourComboBoxValue & "'"

-Gary
 
Can I put a combo box in the report header so that it will display the data in the detail of the report for records based upon the selection in the combo box?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top