Here is a snippet of some code on a form.
User in the main form (frmPrimaryData)
that form contains among other things clients name and address
a user who wants to change or update it clicks a button which opens up an unbound form, clicking save triggers a SQL UPDATE...
Once thats done I want the form (frmPrimaryDataUpdate) to close but what actually happens is the form behind (frmPrimaryData) closes instead.
Forms!FrmPrimaryData.Requery
DoCmd.Close
Else
User in the main form (frmPrimaryData)
that form contains among other things clients name and address
a user who wants to change or update it clicks a button which opens up an unbound form, clicking save triggers a SQL UPDATE...
Once thats done I want the form (frmPrimaryDataUpdate) to close but what actually happens is the form behind (frmPrimaryData) closes instead.
Forms!FrmPrimaryData.Requery
DoCmd.Close
Else