Hello there,
I have a form that has a subform (2 actually, tabbed). I have a many to many relationship estabslished, and the data on the subform is taken from the relationship table/query. It's working fine.
When adding a new record, if the user accidentally enters something in the subform first, instead of the mainform, and then go back to the main form, an error message pops up "Index or Primary Key cannot contain a Null value" and it won't let us get out of that form at all.
I would like to resolve this problem, by restricting the user to enter info in the mainform first and then go to subform. How can that be done? Elaborate instructions will be highly appreciated.
Thank you all guys, this forum has been of great help and learning tool for me. Thanks for all your support.
Ronnie
I have a form that has a subform (2 actually, tabbed). I have a many to many relationship estabslished, and the data on the subform is taken from the relationship table/query. It's working fine.
When adding a new record, if the user accidentally enters something in the subform first, instead of the mainform, and then go back to the main form, an error message pops up "Index or Primary Key cannot contain a Null value" and it won't let us get out of that form at all.
I would like to resolve this problem, by restricting the user to enter info in the mainform first and then go to subform. How can that be done? Elaborate instructions will be highly appreciated.
Thank you all guys, this forum has been of great help and learning tool for me. Thanks for all your support.
Ronnie