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

Posts: 25
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
 
Sponsored Links (We share ad revenue):
 
Old 07-03-2006, 06:29 AM Re: (0x80040E14) Syntax error (missing operator) in query expression single quotes
chrishirst's Avatar
Super Moderator

Posts: 10,642
Location: Blackpool. UK
escape the single quotes with a single quote as a replace function.

stripQuotes()
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-01-2008, 05:23 AM Re: (0x80040E14) Syntax error (missing operator) in query expression single quotes
Junior Talker

Posts: 1
Name: Rajendra Khope
Location: Pune
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!
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to (0x80040E14) Syntax error (missing operator) in query expression single quotes
 

Thread Tools

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

vB 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 0.14364 seconds with 14 queries