Can anyone tell me why this isn't working?
Private Sub cmdPrint_Click()
Dim strWhere As String
If Me.Dirty Then 'Save any edits.
Me.Dirty = False
End If
If Me.NewRecord Then 'Check there is a record to print
MsgBox "Select a record to print"
Else
strWhere = "[ID] = """ & Me.[ID] & """"
DoCmd.OpenReport "R-NCM Red Tag", acViewPreview, , strWhere
End If
End Sub