Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime error 3075(missing operator)

Status
Not open for further replies.

mbaddar

Programmer
May 10, 2001
120
0
0
US
Hi,

I've written a sql insert statement that is causing me a lot of problems. I keep getting a runtime error 3075, missing operator when I run the sql statement below. The message specifies the OrderNotes field. This is the message I'm getting:
Runtime error 3075(missing operator) in query expression:
"This order is to be shipped overnight and customer will receive 10% discount')'.

Here is my sql statement.
sql = "INSERT INTO InquiriesOrders(ClientID, OrderNotes)VALUES(" & ClientID & "," & "'" & OrderNotes & "'" & ")"

Any ideas?
Thanks a lot.
MBaddar

 
Try this:
sql = "INSERT INTO InquiriesOrders(ClientID, OrderNotes)VALUES(" & ClientID & ",'" & OrderNotes & "')"

That should do it assuming ClientID is datatype Number and OrderNotes is datatype Text.

Paul

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top