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

Print dialogue box to open on report

Status
Not open for further replies.

techkenny1

Technical User
Jan 23, 2009
182
AU
Hi all,

Is it possible that when a report is opened that the print dialogue box opens without having to select the print command when you do a right click on the report.
I wanted the print box to be able to go straight to the box where you can put in a filename, save it and then it would be printed.

many thanks
 
A print dialog can't give an option to set a file name.
that is being called from the report open event like
Code:
DoCmd.RunCommand acCmdPrint
another way is to export the report as something(html, word, excel, snapshot etc..)
Code:
DoCmd.RunCommand acCmdExport

You may look into the other options of [tt]DoCmd.RunCommand[/tt].

Zameer Abdulla
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top