I am working on a database to track aerial applicators as they move from company to company in the course of a growing season.
My main table (company table) and form has company information and the subform has the pilot information (pilot table).
As the pilots changes companies as they move north through the season, I want to enter the new company ID they are changing to, using a combo box in the pilot sub form. The combo box has a look up of the company ID from the company table. Based on the new company ID selected in the combo box I want to run a dlookup in the on change event to set the company ID in the pilot table to the selected company ID.
[comp_ID) = DLookup("[comp_ID]", "Company", "[Comp_ID] = forms!pilot_info![Comp_ID]")
This dlookup acts like it works but does not change the Pilot table company ID.
Tracking is done in a change table that is written at the same time.
Hope this is clear enough. Thanks for any help. G
My main table (company table) and form has company information and the subform has the pilot information (pilot table).
As the pilots changes companies as they move north through the season, I want to enter the new company ID they are changing to, using a combo box in the pilot sub form. The combo box has a look up of the company ID from the company table. Based on the new company ID selected in the combo box I want to run a dlookup in the on change event to set the company ID in the pilot table to the selected company ID.
[comp_ID) = DLookup("[comp_ID]", "Company", "[Comp_ID] = forms!pilot_info![Comp_ID]")
This dlookup acts like it works but does not change the Pilot table company ID.
Tracking is done in a change table that is written at the same time.
Hope this is clear enough. Thanks for any help. G