Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Command2_Click()
DoCmd.OpenReport "test", acViewPreview
DoCmd.RunCommand acCmdPrint
End Sub
Private Sub Print_Click()
Dim OldPrinter as string
On Error GoTo Print_Click_Err
OldPrinter = ActivePrinter
ActivePrinter = "HP Deskjet 500"
DoCmd.OpenReport "Report", acViewNormal
ActivePrinter = OldPrinter
Print_Click_end:
Exit Sub
Print_Click_Err:
MsgBox Err.Description, vbOKOnly
Resume Print_Click_end
End Sub