S
SDM
Guest
Hiya
Im quite new to all of this and need a bit of help with something.
Basically i'm trying to open a form using DoCmd.OpenForm and wnat to have multiple 2 criteria in the WHERE part (the criteria are stored in a string called stLinkCriteria) :
"[MEMBER NO]=" & Me![MEMBER NO]
"[CLASS]=" & "'" & Me![ClassName invisible] & "'"
I've tried an AND operator and god knows how many variations of the code but I get either get a Type Mismatch or it is unable to find fields etc etc.
I have no doubt the solution will be incredibly simple, but so far it has me stumped so any help would be greatly appreciated.
TIA
Im quite new to all of this and need a bit of help with something.
Basically i'm trying to open a form using DoCmd.OpenForm and wnat to have multiple 2 criteria in the WHERE part (the criteria are stored in a string called stLinkCriteria) :
"[MEMBER NO]=" & Me![MEMBER NO]
"[CLASS]=" & "'" & Me![ClassName invisible] & "'"
I've tried an AND operator and god knows how many variations of the code but I get either get a Type Mismatch or it is unable to find fields etc etc.
I have no doubt the solution will be incredibly simple, but so far it has me stumped so any help would be greatly appreciated.
TIA