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

Report Printing from form 1

Status
Not open for further replies.

pollenman

Technical User
Dec 13, 2000
68
GB
I would like to Click a buttom which prints a report based on the record selected on the form

Regards :) Terry
 
Use the Where clause in your docmd.openreport command:

DoCmd.OpenReport "MyReport", acPreview, , "[LastName] = '" & Forms![MyForm]![LastName] & "' "

Happy coding! Anthony J. DeSalvo
President - ScottTech Software
"Integrating Technology with Business"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top