Hello
I'm currently doing an Access database for an A Level ICT project. The system is a combined appointment booking and payments system. The tables are:
Patients (the personal details of the patient in which the patient ID is the primary key)
Dentists (the same as the patients table but for the dentists, the primary key is dentist ID)
Appointments (the fields are start time, duration, patient ID, dentist ID, total cost and whether the patient has paid)
Treatment item (the details of each treatment item - the treatment ID which is the primary key, the name, cost and duration in minutes)
Treatment received (the appointment ID, treatment ID and quantity)
The dentist table is related to the patients in a one-to-many relationship. The patient table is related to the appointment table in a one-to-many. The appointment table is related to the treatment received in a one-to-many and the treatment item is related to the treatment received in a one-to-many.
The aim is to create a form with a subform, whereby the main form would display the appointment information, whilst the subform would give the details of the treatment items, quantities, durations and costs.
I'm confused because I was under the impression that it would be possible to be set up so that the user could enter the details in the main form (patient ID to bring up the patient details, dentist ID for the dentist information and the time) and then use the subform to enter the individual treatment item ID numbers so that all the details of each treatment item would be displayed, along with its cost and duration. Then the TOTAL cost and TOTAL duration could be displayed in the main form.
This would save the user entering the treatment information in multiple times for two occurrences.
I've tried for over two hours on three separate occasions to implement this but the truth is that I just don't understand enough about the application to design the forms properly. It may not even be possible to do what I'm trying.
I would really appreciate any help or advice from anyone on this. Sorry if I've not made this clear enough, if so just tell me and I'll try and clarify.
Thanks a lot.
I'm currently doing an Access database for an A Level ICT project. The system is a combined appointment booking and payments system. The tables are:
Patients (the personal details of the patient in which the patient ID is the primary key)
Dentists (the same as the patients table but for the dentists, the primary key is dentist ID)
Appointments (the fields are start time, duration, patient ID, dentist ID, total cost and whether the patient has paid)
Treatment item (the details of each treatment item - the treatment ID which is the primary key, the name, cost and duration in minutes)
Treatment received (the appointment ID, treatment ID and quantity)
The dentist table is related to the patients in a one-to-many relationship. The patient table is related to the appointment table in a one-to-many. The appointment table is related to the treatment received in a one-to-many and the treatment item is related to the treatment received in a one-to-many.
The aim is to create a form with a subform, whereby the main form would display the appointment information, whilst the subform would give the details of the treatment items, quantities, durations and costs.
I'm confused because I was under the impression that it would be possible to be set up so that the user could enter the details in the main form (patient ID to bring up the patient details, dentist ID for the dentist information and the time) and then use the subform to enter the individual treatment item ID numbers so that all the details of each treatment item would be displayed, along with its cost and duration. Then the TOTAL cost and TOTAL duration could be displayed in the main form.
This would save the user entering the treatment information in multiple times for two occurrences.
I've tried for over two hours on three separate occasions to implement this but the truth is that I just don't understand enough about the application to design the forms properly. It may not even be possible to do what I'm trying.
I would really appreciate any help or advice from anyone on this. Sorry if I've not made this clear enough, if so just tell me and I'll try and clarify.
Thanks a lot.
Comment