Ali Edwards
Registered User.
- Local time
- Today, 12:39
- Joined
- Apr 19, 2001
- Messages
- 68
This is something in Access I just don't get! Please help me understand.
I have two tables, tblPersonnel (Names,clock numbers etc) and tblVehicle (Vehicle make, model, registration etc)
If I make a select query including all the fields from both tables and type data into say the Surname field only, it creates a record in the tblPersonnel but not in tblVehicle. When I close and reopen the query it shows no records. I want it to add a related table in tblVehicle even if there is no data in it yet.
I have a primary key in tblPersonnel (PersonnelID) which is an autonumber field. I have a secondary key in tblVehicle (VehicleID) which is a number field. I have created a relationship from tblPersonnel.PersonnelID to tblVehicle.Vehicle ID (One to many because a person may have the use of more than one car).
Why is it then that I can't add a record in my query which creates a record in both the tables unless I insert data into a field from tblPersonnel AND a field from tblVehicle in the query? I would like to be able to add the vehicle data after populating the tblPersonnel.
Many thanks for any advice.
Ali
I have two tables, tblPersonnel (Names,clock numbers etc) and tblVehicle (Vehicle make, model, registration etc)
If I make a select query including all the fields from both tables and type data into say the Surname field only, it creates a record in the tblPersonnel but not in tblVehicle. When I close and reopen the query it shows no records. I want it to add a related table in tblVehicle even if there is no data in it yet.
I have a primary key in tblPersonnel (PersonnelID) which is an autonumber field. I have a secondary key in tblVehicle (VehicleID) which is a number field. I have created a relationship from tblPersonnel.PersonnelID to tblVehicle.Vehicle ID (One to many because a person may have the use of more than one car).
Why is it then that I can't add a record in my query which creates a record in both the tables unless I insert data into a field from tblPersonnel AND a field from tblVehicle in the query? I would like to be able to add the vehicle data after populating the tblPersonnel.
Many thanks for any advice.
Ali