PC Review


Reply
Thread Tools Rate Thread

Apostrophes in text fields

 
 
Ed Richter
Guest
Posts: n/a
 
      14th Jul 2005
I run into an error whenever someone types any words containing apostrophes in a free form text field. Thisis very easy for the average person to do without thinking. Am wondering if there is anything I can do to allow people to add apostrophes to contracted words?

The 31 and Fred Jones are other fields it's trying to post

Microsoft JET Database Engine error '80040e14'

Syntax error (missing operator) in query expression ''can't shouldn't haven't', '31', 'Jones', 'Fred')'.

 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      14th Jul 2005
Are you hand writing your ASP code or using the FP database components?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

"Ed Richter" <(E-Mail Removed)> wrote in message
news:eQiBe.141644$(E-Mail Removed)...
I run into an error whenever someone types any words containing apostrophes in a free form text
field. Thisis very easy for the average person to do without thinking. Am wondering if there is
anything I can do to allow people to add apostrophes to contracted words?

The 31 and Fred Jones are other fields it's trying to post

Microsoft JET Database Engine error '80040e14'

Syntax error (missing operator) in query expression ''can't shouldn't haven't', '31', 'Jones',
'Fred')'.


 
Reply With Quote
 
Jon Spivey
Guest
Posts: n/a
 
      14th Jul 2005
Hi Ed,

You need to double up the apostrophes, eg
<%
s = "you can't do this"
s = replace(s, "'", "''")
%>

For clarity thats double quote-single quote-double quote, double quote-single quote-single quote-double quote

--
Cheers,
Jon
Microsoft MVP

"Ed Richter" <(E-Mail Removed)> wrote in message news:eQiBe.141644$(E-Mail Removed)...
I run into an error whenever someone types any words containing apostrophes in a free form text field. Thisis very easy for the average person to do without thinking. Am wondering if there is anything I can do to allow people to add apostrophes to contracted words?

The 31 and Fred Jones are other fields it's trying to post

Microsoft JET Database Engine error '80040e14'

Syntax error (missing operator) in query expression ''can't shouldn't haven't', '31', 'Jones', 'Fred')'.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apostrophes in text being inserted into sql cj2 Microsoft VB .NET 37 29th Apr 2009 03:34 AM
Find & Replace apostrophes in text =?Utf-8?B?Ui4gSWFuIExlZQ==?= Microsoft Excel Misc 6 29th Aug 2007 02:52 PM
HTML text spacing after apostrophes =?Utf-8?B?TFRM?= Microsoft Outlook Discussion 0 16th Apr 2007 04:50 PM
Delete Leading Apostrophes in text fields John Underwood Microsoft Excel Worksheet Functions 2 1st Jun 2004 04:45 PM
Apostrophes and formatting numbers reading as text Michele Microsoft Excel Worksheet Functions 7 27th May 2004 05:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:58 PM.