G
Guest
I am trying to add an "And" in a where clause of the DoCmd.OpenForm (see
below), but I can't seem to get the syntax right re: the 'And'. I keep
getting a "Type Mismatch" error.
Does anyone know the right syntax?
Thanks
stDocName = "Applications"
stLinkCriteria = "[Date]=" & "#" & Me![Date] & "#" And "[StudentID]=" &
Me![StudentID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
below), but I can't seem to get the syntax right re: the 'And'. I keep
getting a "Type Mismatch" error.
Does anyone know the right syntax?
Thanks
stDocName = "Applications"
stLinkCriteria = "[Date]=" & "#" & Me![Date] & "#" And "[StudentID]=" &
Me![StudentID]
DoCmd.OpenForm stDocName, , , stLinkCriteria