T
Tony Wainwright
Hi Guys
I have created a form with sub form using the wizard. The main form has 1
field (HospitalId) linked to table tblHospital. The sub from contains 3
fields (WardId, WardName and Beds) from table tblHospitalWard. If I
navigate the main form by the navigation buttons I can add, delete and edit
records in the subform. However I want to navigate by means of using a
combo box on the main form. I have changed the text box on the main form to
a combo box, but when I change hospitals and try click in an empty field to
input data I get:
The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key or relationship.
Change the data in the field or fields that contain the duplicate data....
Even if I try to click in an existing record I want to edit I get the same
message. This is purely a wizard created form, there CBF at all.
Any ideas would really help
Thanks
Tony
I have created a form with sub form using the wizard. The main form has 1
field (HospitalId) linked to table tblHospital. The sub from contains 3
fields (WardId, WardName and Beds) from table tblHospitalWard. If I
navigate the main form by the navigation buttons I can add, delete and edit
records in the subform. However I want to navigate by means of using a
combo box on the main form. I have changed the text box on the main form to
a combo box, but when I change hospitals and try click in an empty field to
input data I get:
The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key or relationship.
Change the data in the field or fields that contain the duplicate data....
Even if I try to click in an existing record I want to edit I get the same
message. This is purely a wizard created form, there CBF at all.
Any ideas would really help
Thanks
Tony