I have a main form that also contains a subform and entering data into both fills data into two separate tables. The two tables are connected as a one-to-many relationship, where the data that goes into the main form and its related table is the ONE and the data input into the subform has the MANY side of the relationship. I have enforced referential integrity in the relationship between these two tables. The question I have is; that it is possible for a user to input data into the subform, put no data into the main form, then click back to previous record to look at something and then click forward to the record she was just working on. The problem I have is since no data was input into the mainform, the primary key never got set, so the data in the subform is now a orphan set of data that cannot be viewed. Is there a way that I can prevent a user from only entering data only into the subform without entering data into the main form before changing to a different record? In proper use of the database data should always be put into the mainform, but some users like to do things differently so I did to try a bullet proof the database.
Thanks for the help,
Tfrank
Thanks for the help,
Tfrank