Hi All,
Probably very simple but I get above error when trying to run following code..
Could anyone shed some light please//
The object is to send a report direct to the printer or show it on screen..
Probably very simple but I get above error when trying to run following code..
Could anyone shed some light please//
Code:
Private Sub cbPrintStock_Click()
Dim strView As String
Dim StrDocname As String
Dim StrWhere As String
strDelim = """"
StrDocname = "rptStock"
If Forms!frmTouchscreen.chkRepView = True Then
strView = "acViewNormal"
Else
strView = "acViewPreview"
End If
DoCmd.OpenReport StrDocname, strView, , StrWhere, acWindowNormal
End Sub
The object is to send a report direct to the printer or show it on screen..