Concatenate the values into the string, e.g.:
strSqlEmail1 = "INSERT INTO Table1 (job, iduser) VALUES (" & _
Nz(Me.jobnumber, 0) & ", ""Say what?"");"
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
<el*********@hotmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I have the following code.
i m wondering how you pass the actual value of a variable to an insert
query
I want to input the value os jobnumber and finalstring
strSqlEmail1 = "INSERT INTO Table1 (job, iduser) VALUES (jobnumber,
finalstring)"
Thanks in advance
Riri