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

Creating Access reports with combo boxes?? HELP

Status
Not open for further replies.

JP2275

Technical User
Sep 23, 2005
4
US
So, I've successfully (with help from tek-tips) managed to create a parameter query to select a list of employees from a table. I created an unbound combo box with 'OK' and 'cancel' buttons under Forms; when this is selected, the box pops up, prompts the user to select an employee from the list, and then runs the query with additional information about the employee. All of this works great. My question is how do I get this to work with a report? After the combo box form is run, it pulls up the data in the query format, and I can't seem to figure out or find any help on how to get this to work with reports. Any help is greatly appreciated.

Thanks!
~JP
 

[ul]
[li] Create a report with the recorsource of the query[/li]
[li] Behind the OK button you must be having code like [/li]
Code:
DoCmd.OpenQuery "QueryName" '......
change it to like
Code:
DoCmd.OpenReport "ReportName", acViewPreview '.........
[/ul]

________________________________________________________
Zameer Abdulla
Help to find Missing people
There’s a world of difference between editorials and advertorials
 
Thanks so much! This worked perfectly.
~JP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top