I would like to use strWhere to search a boolean field. Can someone provide me with the proper syntax?
See similar code below.
Thanks for any help.
See similar code below.
Code:
Dim strWhere As String
strWhere = "1=1"
If Not IsNull(Me.chkPaid) Then
strWhere = strWhere & " AND [Paid] Like """ & Me.chkPaid & """ "
End If
Dim stDocName As String
stDocName = "frmNOVSearch"
DoCmd.OpenForm stDocName, acFormDS, , strWhere
End Sub
Thanks for any help.