Hello, Tek-Tips Wizards!!!
I have a form with some code in the Form_AfterInsert property on a DATA ENTRY form.
If I enter information in the fields and tab through to the next new record, the Form_AfterInsert code works just fine.
However, because of some field defaults, it isn't necessary to tab all the way through or enter information in all the fields. So, if the user hits the CLOSE button the code behind the Form_AfterInsert property doesn't run.
Here's the code for the close button:
[tt]DoCmd.Close acForm, Me.NAME, acSaveYes
[Forms]![frmGapMenu].Visible = True[/tt]
The Form_AfterInsert property code is too complicated to post here, and I don't believe it's necessary to do that.
Shouldn't the Form_AfterInsert property code run automatically when the CLOSE button is clicked?
Please help!
Jim DeGeorge![[wavey] [wavey] [wavey]](/data/assets/smilies/wavey.gif)
I have a form with some code in the Form_AfterInsert property on a DATA ENTRY form.
If I enter information in the fields and tab through to the next new record, the Form_AfterInsert code works just fine.
However, because of some field defaults, it isn't necessary to tab all the way through or enter information in all the fields. So, if the user hits the CLOSE button the code behind the Form_AfterInsert property doesn't run.
Here's the code for the close button:
[tt]DoCmd.Close acForm, Me.NAME, acSaveYes
[Forms]![frmGapMenu].Visible = True[/tt]
The Form_AfterInsert property code is too complicated to post here, and I don't believe it's necessary to do that.
Shouldn't the Form_AfterInsert property code run automatically when the CLOSE button is clicked?
Please help!
Jim DeGeorge
![[wavey] [wavey] [wavey]](/data/assets/smilies/wavey.gif)