I have a button on a form that should open a report but it sending the report to the default printer instead. How do stop it from printing? I'm using access 2010
Private Sub Generate_Click()
If Me.Staff = "<< All >>" Then
DoCmd.OpenReport "rptAll", acViewNormal, , , acHidden
Else
DoCmd.OpenReport "rptStaff", acViewNormal, , , acHidden
End If
End Sub
acViewLayout
,acViewReport
oracViewPreview
. But why are you hiding it? – Andy G