I am designing a invoice and I need to send info to a temp table from the different fields on a form I had trouble with the Syntax so I have cut it down to just one fields w which is the description field. and sending it to a like field on the DB.
Sub newtest()
w = Me.DESCR.Value
strSQL = "INSERT INTO las-temp ( DESCR )" & _
"SELECT '" & DESCR & "' AS " & w & ";"
Debug.Print strSQL
DoCmd.RunSQL strSQL
End Sub
Thanks for your help
Sub newtest()
w = Me.DESCR.Value
strSQL = "INSERT INTO las-temp ( DESCR )" & _
"SELECT '" & DESCR & "' AS " & w & ";"
Debug.Print strSQL
DoCmd.RunSQL strSQL
End Sub
Thanks for your help