Hi, I'm having a frustrating encounter with an append query. Here is the code I am running to add a record to tblCustomer after filling out the form bound to tblTempCustomer.
When this executes, the record in tblTempCustomer is not appended to tblCustomer. However, if I leave the temporary table alone by not deleting the record (''''DoCmd.RunSQL "Delete...) and then simply run the query from the object list in the main access window, the record appends perfectly fine. Same query, the only difference is that the form is closed since it is running as a dialog box. All help/advice is appreciated, thanks.Code:Private Sub AddCustomerShippingcb_Click() DoCmd.SetWarnings False DoCmd.OpenQuery "TempCustomerAddressesQuery", acViewNormal, acEdit ''''DoCmd.RunSQL "Delete [tblTempCustomer].* From [tblTempCustomer];" DoCmd.SetWarnings True End Sub