V
Veus
Hi,
I have a main form which contains course information.
I also have two subforms which contain the equipment for that course
and any breaks the course has.
These are linked in a one to many relationship with the main form.
When i fill in information for the course, and then move to the subform
and enter something there everything seems to happen ok.
When i then try and select another control on the main form or other
subform, it says that there is a duplicate key on the main form.
I assume because access as inserted the record when i move to the
subform, but then tries to add the same record again (using the same
ID, which is the PK).
How can i tell access not to perform another insert with the same
information?
Or if you have any other strategies on adding information to a table
and other tables in a one to many relationship i would be grateful.
I have a main form which contains course information.
I also have two subforms which contain the equipment for that course
and any breaks the course has.
These are linked in a one to many relationship with the main form.
When i fill in information for the course, and then move to the subform
and enter something there everything seems to happen ok.
When i then try and select another control on the main form or other
subform, it says that there is a duplicate key on the main form.
I assume because access as inserted the record when i move to the
subform, but then tries to add the same record again (using the same
ID, which is the PK).
How can i tell access not to perform another insert with the same
information?
Or if you have any other strategies on adding information to a table
and other tables in a one to many relationship i would be grateful.