N
Nelson
I am using a form to set up a record in a "master file" and a 2nd form to
enter line information in a second "detail table" There is a one to many
relationship / "link" between the two tables.
The user fills in the "master form" , and then clicks open the "detail form".
A public statement loads the master form ID / Link on the detail form, to be
used as the link between the two forms / tables.
When trying to exit the "detail form" there is an error created as the
master form is not saved yet, therefore the "link" is not established for the
one to many relationship.
If the user exits the "master form" and then reopens, the save is complete
and the process works fine.
I have tried the "DoCmd.RunCommand acCmdSave" and "DoCmd.RunCommand
acCmdSaveRecord" and receive an error on these stating they are not available.
Does anyone have an idea how to solve this?
Thank you
Nelson
enter line information in a second "detail table" There is a one to many
relationship / "link" between the two tables.
The user fills in the "master form" , and then clicks open the "detail form".
A public statement loads the master form ID / Link on the detail form, to be
used as the link between the two forms / tables.
When trying to exit the "detail form" there is an error created as the
master form is not saved yet, therefore the "link" is not established for the
one to many relationship.
If the user exits the "master form" and then reopens, the save is complete
and the process works fine.
I have tried the "DoCmd.RunCommand acCmdSave" and "DoCmd.RunCommand
acCmdSaveRecord" and receive an error on these stating they are not available.
Does anyone have an idea how to solve this?
Thank you
Nelson