Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
(0x80040E14) Syntax error (missing operator) in query expression single quotes
Old 07-03-2006, 07:00 AM (0x80040E14) Syntax error (missing operator) in query expression single quotes
Average Talker

Posts: 25
Trades: 0
Hi All,

I am recieving the Microsoft JET Database Engine (0x80040E14) Syntax error (missing operator) in query expression when updating data that contains single quote marks, for example:
I'm going to....
It's happening......
It'll take place......
The Conn.Execute(strSQL) statement then fails as it appears that it can process the date before the quote marks (i.e. It), but can't process the data following the quote marks (i.e ll take place)
Is there a simple solution to this problem?
Thanks!
devine is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-03-2006, 07:29 AM Re: (0x80040E14) Syntax error (missing operator) in query expression single quotes
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
escape the single quotes with a single quote as a replace function.

stripQuotes()
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-01-2008, 06:23 AM Re: (0x80040E14) Syntax error (missing operator) in query expression single quotes
Junior Talker

Posts: 1
Name: Rajendra Khope
Location: Pune
Trades: 0
Hi you can use replace function in vb
if u r using ASP
strIn=Replace (strIn, "'", "''")

bkrajendra is offline
Reply With Quote
View Public Profile Visit bkrajendra's homepage!
 
Reply     « Reply to (0x80040E14) Syntax error (missing operator) in query expression single quotes
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.12021 seconds with 12 queries