Opening reports using button

emdiesse

Registered User.
Local time
Today, 09:03
Joined
Feb 1, 2006
Messages
36
How can I open reports in the report viewer using abutton.

This prints the form. I want to open it.
Code:
Private Sub btnOpenSummary_Click()
    DoCmd.OpenReport ("rptSummary")
End Sub

Thanks
 
Sergeant said:
DoCmd.OpenReport "rptSummary", acViewPreview

Thank you. How about if I were to use this for my buttons code?

I was hoping to open this form within a subform view if possible
Private Sub btnrptOrderList_Click()
Forms("frmIndex").IndexFrame.SourceObject = "rptOrderList"
End Sub
 

Users who are viewing this thread

Back
Top Bottom