markswan20
Technical User
Hi guys i am using 2 forms both need to be able to print the same data the one form works fine now i've added 2 command buttons with the following code attached to the onclick event could someone please tell me where i'm going wrong as i keep getting the debugger appear
Private Sub Command3_Click()
Dim stDocName As String
stLinkCriteria = "[PRINTOPTIONSREADONLY]=" & Me![PRINTOPTIONSREADONLY]
stDocName = "BLANK_WORK_SHEET"
DoCmd.OpenReport stDocName, , , stLinkCriteria
End Sub
Kind Regards
Mark
Private Sub Command3_Click()
Dim stDocName As String
stLinkCriteria = "[PRINTOPTIONSREADONLY]=" & Me![PRINTOPTIONSREADONLY]
stDocName = "BLANK_WORK_SHEET"
DoCmd.OpenReport stDocName, , , stLinkCriteria
End Sub
Kind Regards
Mark