Hi everyone.
Error while executing following code relating DLookup
RightUser = DLookup("[UserRights]", "tblRights", "[FormName]=" & Me.name & " " & "And [EmplUserName]='" & TempVars(EmplUserName) & "'")
this gives the error "Data type mismatch in criteria or expression".
Any ideas? I'm sure it's a minor error but I'm really stumped!!
Thanks in advance,
Dharmesh
Error while executing following code relating DLookup
RightUser = DLookup("[UserRights]", "tblRights", "[FormName]=" & Me.name & " " & "And [EmplUserName]='" & TempVars(EmplUserName) & "'")
this gives the error "Data type mismatch in criteria or expression".
Any ideas? I'm sure it's a minor error but I'm really stumped!!
Thanks in advance,
Dharmesh