Hi,
I have a 'Add' button to add a new record to a form. But access won't assign the PrimKey (autonumber) until some 'entries' in the form are 'modified'. But I like to open a 'subform' through a button which is linked to the 'parent form' through this ID. Is there a way to set the form 'dirty' and trigger it to refresh and set the PrimKey the minute I add a new record so I can pass it to the 'subform' by using TempVar?
Thanks,
DY