Hi, I don't know why its giving me a 3075 runtime error.
"Syntax error(missing operator) in query expression 'Patient_ID='."
Code:
Private Sub Form_Current()
If IsNull(DMax("Group", "PetList", "Patient_ID=" & Me.Patient_ID)) And Not IsNull([Patient ID]) Then
Me.Parent!imgExc.Visible = True
Me.Parent!labExc.Visible = True
Else
Me.Parent!imgExc.Visible = False
Me.Parent!labExc.Visible = False
End If
End Sub
Its saying I'm missing an operator but isn't the "=" the operator in this case? Patient_ID is an integer, could that be the reason?