S
scottyb121 via AccessMonster.com
I am trying to run a report with the criteria: a AND (b OR c). Here is the
code I am trying to use but it keeps coming out as (a AND b) OR c. I am
trying to figure out how and where to put " or () but I keep getting errors
when I think I have it right.
stLinkCriteria = "[DOS]=" & Chr(34) & Me.DateScheduled & Chr(34)
stLinkCriteria = stLinkCriteria & " AND [PatientRecordID]=" & Me.
PatientRecordID & " OR [PatientName]= " & Chr(34) & Me.PatientName & Chr(34)
code I am trying to use but it keeps coming out as (a AND b) OR c. I am
trying to figure out how and where to put " or () but I keep getting errors
when I think I have it right.
stLinkCriteria = "[DOS]=" & Chr(34) & Me.DateScheduled & Chr(34)
stLinkCriteria = stLinkCriteria & " AND [PatientRecordID]=" & Me.
PatientRecordID & " OR [PatientName]= " & Chr(34) & Me.PatientName & Chr(34)