Hi
I have an appointments database on which I have a table “tblAppointments with fields named
Manufacturer, Model and Registration . There is a tblCustomers and tblVehicles,table , the Customers table has a Primary Key CustID and is linked to the vehicles table via a CustID field also with one to many relationship. When making an appointment a Form is opened frmBookAppointment which is based on a query, so basically when opened it shows customer details with three fields from the tblAppointments Manufacturer, Model and Registration and also has a subform with all the customer vehicles for that particular customer only.
The subform is in datasheet view and shows a manufacturer, Model and Registration in a row for each vehicle the customer owns . This all works great and the subform refreshes ok and shows correct vehicles etc. Now for my problem, going back to my table “tblAppointments”, What i want to happen is when the frmBookAppointment is opened and a customer is slected from the combo box and after the subform has refreshed with the customers vehicles(all this works ok up till this point) , an operator can double click on the row of the subform to select that particular vehicle for this appointment and that vehicles details are added in to the tblAppointments in the 3 fields Manufacturer, Model and Registration and then those details refresh on the frmBookAppointment in their respective text boxes.
I hope I have explained it properly and not rambled on and confused the issue.
Many thanks for your help on my previous post
Regards Chris
I have an appointments database on which I have a table “tblAppointments with fields named
Manufacturer, Model and Registration . There is a tblCustomers and tblVehicles,table , the Customers table has a Primary Key CustID and is linked to the vehicles table via a CustID field also with one to many relationship. When making an appointment a Form is opened frmBookAppointment which is based on a query, so basically when opened it shows customer details with three fields from the tblAppointments Manufacturer, Model and Registration and also has a subform with all the customer vehicles for that particular customer only.
The subform is in datasheet view and shows a manufacturer, Model and Registration in a row for each vehicle the customer owns . This all works great and the subform refreshes ok and shows correct vehicles etc. Now for my problem, going back to my table “tblAppointments”, What i want to happen is when the frmBookAppointment is opened and a customer is slected from the combo box and after the subform has refreshed with the customers vehicles(all this works ok up till this point) , an operator can double click on the row of the subform to select that particular vehicle for this appointment and that vehicles details are added in to the tblAppointments in the 3 fields Manufacturer, Model and Registration and then those details refresh on the frmBookAppointment in their respective text boxes.
I hope I have explained it properly and not rambled on and confused the issue.
Many thanks for your help on my previous post
Regards Chris