I have a problem with adding new records to a combo box.
Control source is usually a numeric code (primary key of table) usually not visible (col size 0.0cm)
Name is usually visible because it is more user friendly.
Adding new record:
The user must key in numeric code which is the actual key because the code adds a record using this key.
Eg. I have a table of doctors with doctor codes, surnames and forenames.
tblDoctor: DoctorCode, Surname, Forename.
My primary key is DoctorCode which is the Control Source with a column width of 0cm
The Surname and Forename are visible when the drop down list is clicked.
If the user wishes to add a Doctor to the table they will have to key the DoctorCode in the combo box to follow the notinlist code and open the form for adding a doctor.
In summary, the user is used to seeing Surname and Forename in this field and then when adding a new record must key a number.
Is there a more user friendly way of doing this or am I coming at it wrongly?
I have tried including the DoctorCode with a size > 0 but then that is the field displayed when the form is first opened, rather than the Surname and it is not obvious to the user which Doctor it is at first glance.
Control source is usually a numeric code (primary key of table) usually not visible (col size 0.0cm)
Name is usually visible because it is more user friendly.
Adding new record:
The user must key in numeric code which is the actual key because the code adds a record using this key.
Eg. I have a table of doctors with doctor codes, surnames and forenames.
tblDoctor: DoctorCode, Surname, Forename.
My primary key is DoctorCode which is the Control Source with a column width of 0cm
The Surname and Forename are visible when the drop down list is clicked.
If the user wishes to add a Doctor to the table they will have to key the DoctorCode in the combo box to follow the notinlist code and open the form for adding a doctor.
In summary, the user is used to seeing Surname and Forename in this field and then when adding a new record must key a number.
Is there a more user friendly way of doing this or am I coming at it wrongly?
I have tried including the DoctorCode with a size > 0 but then that is the field displayed when the form is first opened, rather than the Surname and it is not obvious to the user which Doctor it is at first glance.