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

Print Preview Form

Status
Not open for further replies.

luceze

Programmer
Apr 26, 2001
842
0
0
US
I'm having problems opening a form in the print preview screen from a command button. I can send it straight to the printer with docmd.printout but I would like the user to be able to see the preview first.

Thanks,
Eric
 
Can you cut and paste the form design into a report and add a print preview command button from the form side?
 
Didn't work and as far as I can tell this can't be done through conventional means. Thanks anyway.
 
1. Create a command button, name that button 'cmdCurrentFormPreview'
2. Set 'Display When' property to 'Screen Only'
3. Inside cmdCurrentFormPreview's 'On Click' event, put this line:
DoCmd.OpenForm Me.Form.Name, acPreview
4. To print preview this current form, just click this cmdCurrentFormPreview button
 
Thanks for the reply. I had already tried that but it clears out all the user entered fields when it reopens the form.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top