CJBIRKIN
Drink!
- Local time
- Today, 09:36
- Joined
- May 10, 2002
- Messages
- 255
Hi
I have a form/subform setup with cascading comboboxes on the subform.
I have three comboboxes.
The first lists a number of hospitals.
The second displays a list of wards which are filtered using the hospital selected in the first combobox.
The third is a list of consultants who also belong to the hospital selected.
The three lists are derived from fields selected from three seperate tables. Tbl_Hospitals , Tbl_wards , Tbl_medical staff.
I am storing all of the selected primary keys in another table Tbl_hospital_episode i.e if hospital x is selected then its primary key is entered into Tbl_hospital_episode, if ward y is selected then its primary key is entered into Tbl_hospital_episode etc.
I have noticed however that if hospital --> ward -->consultant are select and later the hospital is changed ,for that record, to one where there are no current wards or consultants associated with that hospital, the keys for the consultant and ward are left in Tbl_hospital_episode even though the cascaded comboxes are empty.
Can anyone explain this?
Thanks
Chris
I have a form/subform setup with cascading comboboxes on the subform.
I have three comboboxes.
The first lists a number of hospitals.
The second displays a list of wards which are filtered using the hospital selected in the first combobox.
The third is a list of consultants who also belong to the hospital selected.
The three lists are derived from fields selected from three seperate tables. Tbl_Hospitals , Tbl_wards , Tbl_medical staff.
I am storing all of the selected primary keys in another table Tbl_hospital_episode i.e if hospital x is selected then its primary key is entered into Tbl_hospital_episode, if ward y is selected then its primary key is entered into Tbl_hospital_episode etc.
I have noticed however that if hospital --> ward -->consultant are select and later the hospital is changed ,for that record, to one where there are no current wards or consultants associated with that hospital, the keys for the consultant and ward are left in Tbl_hospital_episode even though the cascaded comboxes are empty.
Can anyone explain this?
Thanks
Chris