Howlsta
Vampire Slayer
- Local time
- Today, 07:28
- Joined
- Jul 18, 2001
- Messages
- 180
I know this is easy but haven't done it for ages and can't find my book.
I've got a form of accident details. The form it's based on has a vehicle ID field which is the foreign key. I want the user to be able to select the model and make of the car from the combo boxes then Access will store it as vehicle ID in the accident details table.
the Make and model combination is always unique, so points to the vehicleID in that particular table.
I'm using forms!myform!mycbo etc in the queries the problem is I can't seem to set it up quite right.
i.e. when I pick a model and make it tries to store it in the wrong table (trying to make a duplicate) rather than changing the vehicleID foreign key in the accident details table
say for instance
tblvehicles
VehicleID make model
1 ford escort
other table
formID Vehicle ID Year Crash Description
A0001 1 1987 took a bang from behind
I want to be able to change vehicle ID in the other table on my form sipmly by picking the make and model from cbos, at the moment when I pick make and model it tries to add a new record in vehicle table
I've got a form of accident details. The form it's based on has a vehicle ID field which is the foreign key. I want the user to be able to select the model and make of the car from the combo boxes then Access will store it as vehicle ID in the accident details table.
the Make and model combination is always unique, so points to the vehicleID in that particular table.
I'm using forms!myform!mycbo etc in the queries the problem is I can't seem to set it up quite right.
i.e. when I pick a model and make it tries to store it in the wrong table (trying to make a duplicate) rather than changing the vehicleID foreign key in the accident details table
say for instance
tblvehicles
VehicleID make model
1 ford escort
other table
formID Vehicle ID Year Crash Description
A0001 1 1987 took a bang from behind
I want to be able to change vehicle ID in the other table on my form sipmly by picking the make and model from cbos, at the moment when I pick make and model it tries to add a new record in vehicle table
Last edited: