
Originally Posted by
rpeare
You've done everything correctly as far as I can tell, but you don't need a 'save' record. ANything you type in the subform is automatically saved and assuming you have linked your tables correctly (the FK of the subform should be the PK of the main form) the link will be established automatically as well.
In other words if you have a field LinkMainToSub_Key on both tables on your Main_tbl LinkMaintoSub_Key should be an autonumber (unless you are generating a PK yourself) and on your Sub_tbl LinkMaintoSub_Key should be a number (long integer).
As long as that's the case you do not need the 'save' button and you do not need to go through any contortions in creating the link fields, it will happen automatically.