P
Penstar
I have the following SQL to insert into a table:
strSQL = "INSERT INTO log " & "(origin, to, mobile, result) " & "VALUES(" &
"Mobile List" & ", " & firstname & " " & lastname & ", " & Mobile & ", " &
getresponse & ")"
CurrentDb.Execute strSQL, dbFailOnError
In the immediate window strSQL shows the following result
strSQL=INSERT INTO log (origin, to, mobile, result) VALUES(Mobile List, John
Smith, 0420000000, +OK)
I am thinking it is not working because the values don't have quotation
marks around them. I cannot figure out how to put these in in my SQL string.
(All values are text)
Any help would be much appreciated.
Thanks
Penny
strSQL = "INSERT INTO log " & "(origin, to, mobile, result) " & "VALUES(" &
"Mobile List" & ", " & firstname & " " & lastname & ", " & Mobile & ", " &
getresponse & ")"
CurrentDb.Execute strSQL, dbFailOnError
In the immediate window strSQL shows the following result
strSQL=INSERT INTO log (origin, to, mobile, result) VALUES(Mobile List, John
Smith, 0420000000, +OK)
I am thinking it is not working because the values don't have quotation
marks around them. I cannot figure out how to put these in in my SQL string.
(All values are text)
Any help would be much appreciated.
Thanks
Penny