I just can't seem to get my syntax right today. I'm trying to use an OR operator. Whithout the OR, this works fine:
strSearchAll = "[FIELD] LIKE '" & "*text*" & "'"
DoCmd.OpenForm "frmDebtorsSubs", , , strSearchAll
I want to add an Or that would be "[FIELD2] LIKE '" & "*text*" & "'" but I can't seem to put the whole statement together. Any help would be greatly appreciated!
strSearchAll = "[FIELD] LIKE '" & "*text*" & "'"
DoCmd.OpenForm "frmDebtorsSubs", , , strSearchAll
I want to add an Or that would be "[FIELD2] LIKE '" & "*text*" & "'" but I can't seem to put the whole statement together. Any help would be greatly appreciated!