BigheadTodd
Technical User
Hello,
After spending hours looking online at various posts, I am at a loss. I ambitiously took on this project to help my local fire department. Here it goes:
I am trying work on a couple forms that share the same primary key ("Incident#"). I am typing in the data into the first form called "RunReport". I have a command button further down the page labeled "EMSCall". When I push the fancy button, it does fancy things (not that fancy, but anyway) with colors of the button, and then it opens another form "EMSCall". "RunReport" is linked to table "RequiredInfoAllCalls" and "EMSCall" is linked to table "MedicalInjury".
When that second form opens, I want to be able to see some of that data from the first page, mainly the value of the Primary Key "Incident#". Instead I get the message: "You cannot add or change a record because a related record is required in the table "RequiredInfoAllCalls". I can type in the exact same values in each field and it still gives me the dreaded message.
I am thinking it has to do with the relationships of the tables. I set up a one-to-one relationship for the tables, between the primary keys "Incident#". I also have them set up with referential integrity and tried varying the possible join types (3 of them in Access).
Does anyone have any ideas on how to fix this and eliminate the dreaded message? Any, and all, assistance will be appreciated! Thanks!
BHT
![[bigears] [bigears] [bigears]](/data/assets/smilies/bigears.gif)
After spending hours looking online at various posts, I am at a loss. I ambitiously took on this project to help my local fire department. Here it goes:
I am trying work on a couple forms that share the same primary key ("Incident#"). I am typing in the data into the first form called "RunReport". I have a command button further down the page labeled "EMSCall". When I push the fancy button, it does fancy things (not that fancy, but anyway) with colors of the button, and then it opens another form "EMSCall". "RunReport" is linked to table "RequiredInfoAllCalls" and "EMSCall" is linked to table "MedicalInjury".
When that second form opens, I want to be able to see some of that data from the first page, mainly the value of the Primary Key "Incident#". Instead I get the message: "You cannot add or change a record because a related record is required in the table "RequiredInfoAllCalls". I can type in the exact same values in each field and it still gives me the dreaded message.
I am thinking it has to do with the relationships of the tables. I set up a one-to-one relationship for the tables, between the primary keys "Incident#". I also have them set up with referential integrity and tried varying the possible join types (3 of them in Access).
Does anyone have any ideas on how to fix this and eliminate the dreaded message? Any, and all, assistance will be appreciated! Thanks!
BHT
![[bigears] [bigears] [bigears]](/data/assets/smilies/bigears.gif)