Can you use multiple criteria? I'm new to this an cannot get my code to work:
This works fine:
stLinkCriteria = "[Q_ClientNo] = '" & Me![ClientNo] & "'"
DoCmd.openForm stDocName, , , stLinkCriteria
However this does not, and this is what I want to do:
stLinkCriteria = "[Q_ClientNo] = '" & Me![ClientNo] & "'" _
& "and" "[Q_FFNo] = '" & Me![FactFindNo] & "'"
Is it possible to specify two criteria in this way. I suspect I have just got the syntax wrong.
Any help would be greatly appreciated!!!
This works fine:
stLinkCriteria = "[Q_ClientNo] = '" & Me![ClientNo] & "'"
DoCmd.openForm stDocName, , , stLinkCriteria
However this does not, and this is what I want to do:
stLinkCriteria = "[Q_ClientNo] = '" & Me![ClientNo] & "'" _
& "and" "[Q_FFNo] = '" & Me![FactFindNo] & "'"
Is it possible to specify two criteria in this way. I suspect I have just got the syntax wrong.
Any help would be greatly appreciated!!!