On a form I've a button to open another form. The new form shows the relevant Participant's records.
Dim stLinkCriteria As String
stLinkCriteria = "ParticipantID=" & Me.Particpantid
DoCmd.OpenForm "tblComments", , , stLinkCriteria
What I want to do is add another criteria to filter it out even more
so that it's something like
stLinkCriteria = "ParticipantID = " & Me.Participantid And INSERT SECOND PART OF FILTER HERE (in my case QuestionID).
I've tried various permutations but without success. I guess it must be possible and it's a question of getting the various quotes in the right place. Any ideas?
Dim stLinkCriteria As String
stLinkCriteria = "ParticipantID=" & Me.Particpantid
DoCmd.OpenForm "tblComments", , , stLinkCriteria
What I want to do is add another criteria to filter it out even more
so that it's something like
stLinkCriteria = "ParticipantID = " & Me.Participantid And INSERT SECOND PART OF FILTER HERE (in my case QuestionID).
I've tried various permutations but without success. I guess it must be possible and it's a question of getting the various quotes in the right place. Any ideas?
Last edited: