Trying to print the current record to a report. Keep getting syntax error message. Heres the code, any help appreciated.
Private Sub Command49_Click()
On Error GoTo Err_Command49_Click
Dim strWhere As String
strWhere = "Contact ID='" & Me.ContactID & "'"
DoCmd.OpenReport "Label", acPreview, , strWhere
Exit_Command49_Click:
Exit Sub
Err_Command49_Click:
MsgBox Err.Description
Resume Exit_Command49_Click
End Sub
Thanks
Private Sub Command49_Click()
On Error GoTo Err_Command49_Click
Dim strWhere As String
strWhere = "Contact ID='" & Me.ContactID & "'"
DoCmd.OpenReport "Label", acPreview, , strWhere
Exit_Command49_Click:
Exit Sub
Err_Command49_Click:
MsgBox Err.Description
Resume Exit_Command49_Click
End Sub
Thanks