This returns a syntax error and it seems to match other examples i see in the forum. Any ideas what could be wrong with it?
Sub Update_Invoice(new_key As Integer, company_id As Integer, invoice_date As Date)
Dim SQL As String
SQL = "INSERT INTO " & "Invoice Purchase " & _
"(" & new_key & ", " & customer_id & ", " & new_key & ", " & invoice_date & ", 0) "
DoCmd.RunSQL SQL
End Sub
Sub Update_Invoice(new_key As Integer, company_id As Integer, invoice_date As Date)
Dim SQL As String
SQL = "INSERT INTO " & "Invoice Purchase " & _
"(" & new_key & ", " & customer_id & ", " & new_key & ", " & invoice_date & ", 0) "
DoCmd.RunSQL SQL
End Sub