Hi getting a syntax error with this query
when I type in the following in the immediate window
it returns
which looks ok to me???
no doubt something blindingly obvious, if someone
could point it out...
TIA
Bob
Code:
strSQL = "INSERT INTO order"
strSQL = strSQL + "(clientname, supplierid, productid, quantity, comment, dateordered )"
strSQL = strSQL + " values (" & Me!txtclientname & "," & Me!cmboven.Column(1) & ""
strSQL = strSQL + " ," & Me!cmboven.Column(0) & ", " & Me!txtoquantity & ", " & Me!txtocomment & ", " & Me!txtoodate & " )"
DoCmd.RunSQL strSQL
when I type in the following in the immediate window
Code:
?strSQL
it returns
Code:
INSERT INTO order(clientname, supplierid, productid, quantity, comment, dateordered ) values (brown,2 ,2, 1, very nice, 9/11/2004 )
which looks ok to me???
no doubt something blindingly obvious, if someone
could point it out...
TIA
Bob