I am trying to use SQL to insert records into a details table where all but one field will contain the same data.
I have this working but my problem is I can only get the SQL to run in the AfterUpdate event of the form. This is a main form/subform setup and there has to be a record created it the main form's table before there can be a record added to the subform's table. I would like to be able to display a message that the records have been created. I have tried
before the focus goes to the close button but that hasn't worked. How do I get the table updated before the form is closing or moving to a new record?
Thanks!
I have this working but my problem is I can only get the SQL to run in the AfterUpdate event of the form. This is a main form/subform setup and there has to be a record created it the main form's table before there can be a record added to the subform's table. I would like to be able to display a message that the records have been created. I have tried
Code:
DoCmd.Save acForm, "frmNewOrders"
'process multiple loads
Call PickupNumbers
'send focus to close button
Me.cmdCloseOrdersForm.SetFocus
Thanks!
Comment