R
Renee
Good Morning,
I am receiving a "Data type mismatch in criteria expression" error from the
following code (On the OnExit event of the field Week#):
Dim varQuantity As Variant
varQuantity = DLookup("[Quantity]", "Orders", "[EmpID]='" & [ID] &
"'And[Week#]='" & [Week#] & "'")
If (Not IsNull(varQuantity)) Then Me![Total] = varQuantity
The fields are numbers on both the table and the form. Any suggestions?
Thank you in advance as always!
Renee
I am receiving a "Data type mismatch in criteria expression" error from the
following code (On the OnExit event of the field Week#):
Dim varQuantity As Variant
varQuantity = DLookup("[Quantity]", "Orders", "[EmpID]='" & [ID] &
"'And[Week#]='" & [Week#] & "'")
If (Not IsNull(varQuantity)) Then Me![Total] = varQuantity
The fields are numbers on both the table and the form. Any suggestions?
Thank you in advance as always!
Renee