I have a checkbox that I would like to be checked automatically when a district that is found on a particular query is selected from a combobox. I'd written code on the AfterUpdate event of the District Code, but I'm not referring to the query correctly and can't seem to remember the correct syntax. Here's what I have - someone please correct my error, thanks!
Private Sub DistCode_AfterUpdate()
If Me!DistCode=DistCode("AbbottDistList"Name of query) Then
Abbott.Value=True
Else
Abbott.Value=False
End if
End Sub
Private Sub DistCode_AfterUpdate()
If Me!DistCode=DistCode("AbbottDistList"Name of query) Then
Abbott.Value=True
Else
Abbott.Value=False
End if
End Sub