G
Guest
I am trying to use DLookup in a form to populate other fields in the form
once a selection is made. The database I'm working in was created by someone
else and I am stepping in now to take over and add new functionality.
Private Sub Combo184_AfterUpdate()
....code here that doesn't apply...
Me.MAKE = DLookup("Make/Model", "Aircraft", "TAIL = [Combo184]")
End Sub
"Make" is the name of the text box on the form
"Make/Model" is the field name in the table "Aircraft"
"TAIL" is what I am selecting in Combo184, and is what I am referencing to
match
up the correct record in the Aircraft table
When I select the Tail number from the Combo Box, the Error 2001 pops up,
telling me I cancelled the previous operation. What am I doing wrong? These
are text fields.
Katie
once a selection is made. The database I'm working in was created by someone
else and I am stepping in now to take over and add new functionality.
Private Sub Combo184_AfterUpdate()
....code here that doesn't apply...
Me.MAKE = DLookup("Make/Model", "Aircraft", "TAIL = [Combo184]")
End Sub
"Make" is the name of the text box on the form
"Make/Model" is the field name in the table "Aircraft"
"TAIL" is what I am selecting in Combo184, and is what I am referencing to
match
up the correct record in the Aircraft table
When I select the Tail number from the Combo Box, the Error 2001 pops up,
telling me I cancelled the previous operation. What am I doing wrong? These
are text fields.
Katie