If I go to add a new invoice in the form, but do not enter any data (so the record is not yet saved) and then I go to enter an invoice item (in the subform) I get the following message:
"You cannot add or change a record because a related record is required in the table 'Invoice'"
Is there a way in VBA to save the invoice before entering the invoice items subform so this problem does not happen?