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!

Preview a report from the Access form with acDialog type

Status
Not open for further replies.

chuongcom

IS-IT--Management
May 15, 2002
6
VN
I develope one Access 2000 application. When active one form with acDialog type, click Preview command on this form to preview a report, I can't see this report, because above form is activing.

Can you help me ?
Thank you very much
 
Hi,
Try this:
Add a command button called Preview to the active form. In the Click event of this button, put in the following line of code.

Private Sub Preview_Click()
DoCmd.OpenReport "yourReportName",acViewPreview
End Sub

This will display the report in the preview mode.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top