Hi All,
I’m very new to Access and any help is greatly appreciated. I’m using Access 2003 and I am creating a database to track medical locums in a placement program. The program enables doctors to go on leave and be temporarily replaced by another doctor.
I have 4 tables; a table with details regarding the locum (a doctor who fills a position in a hospital when another goes on leave), a table with details regarding the doctor who is going on leave, a table with details regarding the hospital and finally a placement table. Details on the tables include common attributes such as names, addresses etc.
The placement table has the ID numbers (primary keys) of the locum, doctor on leave and the hospital. It also has a date in which the placement occurs. The primary key for the placement table is a combination of the locum, doctor on leave, hospital and date fields. This is to ensure that every record is unique. The table below is the Placement table.
LocumID|HospitalID|DocOnLeaveID|PlacementStart|PlacementEnd
10334 9 2 12/04/2009 13/04/2009
10334 9 3 19/04/2009 20/04/2009
10334 9 3 20/04/2009 22/04/2009
10334 11 1 26/03/2009 27/03/2009
12345 9 1 5/04/2009 6/04/2009
12345 11 3 12/05/2009 13/05/2009
What I am having trouble with is creating a form that I can use to create a new record in the placement table (above). I can do this through a query but only by using the ID NUMBERS of the locum, doctor on leave and hospital.
How do I create a dropdown box that I can select the NAMES of the locum, doctor on leave and hospital that already have records in their respective tables and create a new record in the placement table? I need to use the names as a user will not know the ID numbers of the 3 entities.
Thank you for any help provided.
Cheers,
Andrew
I’m very new to Access and any help is greatly appreciated. I’m using Access 2003 and I am creating a database to track medical locums in a placement program. The program enables doctors to go on leave and be temporarily replaced by another doctor.
I have 4 tables; a table with details regarding the locum (a doctor who fills a position in a hospital when another goes on leave), a table with details regarding the doctor who is going on leave, a table with details regarding the hospital and finally a placement table. Details on the tables include common attributes such as names, addresses etc.
The placement table has the ID numbers (primary keys) of the locum, doctor on leave and the hospital. It also has a date in which the placement occurs. The primary key for the placement table is a combination of the locum, doctor on leave, hospital and date fields. This is to ensure that every record is unique. The table below is the Placement table.
LocumID|HospitalID|DocOnLeaveID|PlacementStart|PlacementEnd
10334 9 2 12/04/2009 13/04/2009
10334 9 3 19/04/2009 20/04/2009
10334 9 3 20/04/2009 22/04/2009
10334 11 1 26/03/2009 27/03/2009
12345 9 1 5/04/2009 6/04/2009
12345 11 3 12/05/2009 13/05/2009
What I am having trouble with is creating a form that I can use to create a new record in the placement table (above). I can do this through a query but only by using the ID NUMBERS of the locum, doctor on leave and hospital.
How do I create a dropdown box that I can select the NAMES of the locum, doctor on leave and hospital that already have records in their respective tables and create a new record in the placement table? I need to use the names as a user will not know the ID numbers of the 3 entities.
Thank you for any help provided.
Cheers,
Andrew