G
Guest
OK, here's the basic structure of my database:
Station Table
Each station can have multiple parts (Station prim key unique)
Part Table
Part # prim key unique.
Location Table
ach location can have multiple parts (Location prim key unique)
I then have 2 joining tables and did one to many relationships to setup a many to many relationship as described above as per the help in access. This way for example, Station A1 could have many different parts as well as a certain number of those parts.
The thing is, the data works fine in the tables and subsheets in the tables.
However, when I setup the forms and subform (with the wizard), the data appears correctly (ie when I change the station, the various parts belonging to it show up.) However, when I use the form and change the station, I can no longer add or even click on the parts subform and it gives me the error
"Cannot perform cascading operation. It would result in a duplicate key in table <name>. (Error 3399)"
The thing is, it brings up the right data, I just can't go in and add another part for that station, etc.
Station Table
Each station can have multiple parts (Station prim key unique)
Part Table
Part # prim key unique.
Location Table
ach location can have multiple parts (Location prim key unique)
I then have 2 joining tables and did one to many relationships to setup a many to many relationship as described above as per the help in access. This way for example, Station A1 could have many different parts as well as a certain number of those parts.
The thing is, the data works fine in the tables and subsheets in the tables.
However, when I setup the forms and subform (with the wizard), the data appears correctly (ie when I change the station, the various parts belonging to it show up.) However, when I use the form and change the station, I can no longer add or even click on the parts subform and it gives me the error
"Cannot perform cascading operation. It would result in a duplicate key in table <name>. (Error 3399)"
The thing is, it brings up the right data, I just can't go in and add another part for that station, etc.