Private Sub PatientName_AfterUpdate()
Dim varX As Variant
varX = DLookup("[GroupID]", "Data", "[SSN] = " & Me.SSN)
Me.EmployerTemp = varX
End Sub
I'm getting the following error from the above code:
"Syntax error (missing operator) in query expression "[SSN]='
What is wrong with the code?
Dim varX As Variant
varX = DLookup("[GroupID]", "Data", "[SSN] = " & Me.SSN)
Me.EmployerTemp = varX
End Sub
I'm getting the following error from the above code:
"Syntax error (missing operator) in query expression "[SSN]='
What is wrong with the code?