Hi Folks,
I invoke this sub from a form to append a record into a table. This table is the data source of a subform on my form. I prepare the data in the form and then pass it to the subform through updating its source then refresh the whole thing.
Private Sub btnAddToInvoice_Click()
DoCmd.RunSQL "INSERT INTO tblSalesDetails (SInvoiceID, ItemNumber, Qty, Warranty) " & _
"VALUES (SInvoiceID, tbxBrand, tbxQty, chkWarranty);"
Me.Refresh
End Sub
The problem is that each time I want to append a record a system message pops up to confirm the action. How can I suppress this message or at least customize it.
Thanks
I invoke this sub from a form to append a record into a table. This table is the data source of a subform on my form. I prepare the data in the form and then pass it to the subform through updating its source then refresh the whole thing.
Private Sub btnAddToInvoice_Click()
DoCmd.RunSQL "INSERT INTO tblSalesDetails (SInvoiceID, ItemNumber, Qty, Warranty) " & _
"VALUES (SInvoiceID, tbxBrand, tbxQty, chkWarranty);"
Me.Refresh
End Sub
The problem is that each time I want to append a record a system message pops up to confirm the action. How can I suppress this message or at least customize it.
Thanks