I have a data entry from with a subform inside. If the primary key value in the main form is emptry, you can't enter the subform. Therefore, I created a button that assigns the primary key a value of zero in order to have something there in order to enter the subform.
The problem that I have now is that a new record with the 0 value saves when you enter the subform.
Can someone tell me a way to prevent the new record?
Thanks.
The problem that I have now is that a new record with the 0 value saves when you enter the subform.
Can someone tell me a way to prevent the new record?
Thanks.