Buttons in Preview mode won't work, but they will in Report view. What I've done before, as well, was use a popup form as a floating button to close the report in Preview mode.@theDBguy , so I use a subroutine that populatesoCmd.OpenReport [strReportName], acViewPreview, , strWhere. But once I've hidden the toolbar ribbon & disabled the right click option, I cannot figure how to close the form. I'd like the user to be able to click a 'Close" button to close the report. What am I missing? Appreciate the prompt response.
Private Sub printButton_Click()
'set focus to another textbox
Me.ID.SetFocus
Me.printButton.Visible = False
DoCmd.PrintOut
Me.printButton.Visible = True
End Sub