Hi all,
I am having a problem opening a form and displaying certain LinkCriteria. I need to combine and and/or clause.
I need to select all records where the patient Nr is the same (me.patnr) and the category is either "P" or "S"
I've tried different variations but cannot get it to select the correct records!
stLinkCriteria = ("[KT]='P'" and "[PatNr]=" & Me.[PatNr]) & " Or " & ("[KT]='S'" and "[PatNr]=" & Me.[PatNr])
Help much appreciated!
I am having a problem opening a form and displaying certain LinkCriteria. I need to combine and and/or clause.
I need to select all records where the patient Nr is the same (me.patnr) and the category is either "P" or "S"
I've tried different variations but cannot get it to select the correct records!
stLinkCriteria = ("[KT]='P'" and "[PatNr]=" & Me.[PatNr]) & " Or " & ("[KT]='S'" and "[PatNr]=" & Me.[PatNr])
Help much appreciated!