PC Review


Reply
Thread Tools Rate Thread

DB access to names containing '

 
 
G.F.Schl
Guest
Posts: n/a
 
      23rd Jul 2004
In an ASP I read an MS-Access DB containing names. I tried everything I can
imagine to use """ instead of '" including defining a constant (X37) but it
either fails with an exec error or fails when names containing ' are processed.
MY current code is:
sqltemp="select * from logindata where lastname='"
sqltemp=sqltemp & myname & "'"
(It doesn't work when I try to make it with one statement) I am using FP2002.
Can anyone tell me how to code this for handling names that contain '.
Thanks 10to6

 
Reply With Quote
 
 
 
 
Kathleen Anderson [MVP - FrontPage]
Guest
Posts: n/a
 
      23rd Jul 2004
Hi:
I don't know the answer, but if you do this Google search:
http://www.google.com/search?sourcei...ery+apostrophe
you should find the answer.

--

~ Kathleen Anderson
Microsoft FrontPage MVP
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/



G.F.Schl <(E-Mail Removed)> wrote:
> In an ASP I read an MS-Access DB containing names. I tried everything
> I can imagine to use """ instead of '" including defining a constant
> (X37) but it either fails with an exec error or fails when names
> containing ' are processed. MY current code is:
> sqltemp="select * from logindata where lastname='"
> sqltemp=sqltemp & myname & "'"
> (It doesn't work when I try to make it with one statement) I am using
> FP2002. Can anyone tell me how to code this for handling names that
> contain '.
> Thanks 10to6


 
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
how to insert workbook names and worksheet names to access columns =?Utf-8?B?Z29rb3A=?= Microsoft Access Queries 12 31st Aug 2007 03:52 PM
Names in an Access Chart =?Utf-8?B?SXJpc2hpbXAyMw==?= Microsoft Access Reports 0 8th Mar 2007 07:31 PM
Excel Spreadsheet from Access. List of names changes as names are =?Utf-8?B?R29yZHkgdy9IaSBFeHBlY3RhdGlvbnM=?= Microsoft Excel Misc 1 21st Oct 2005 03:30 AM
Names Names Names Bill William Pat Patrick P G Microsoft Access 3 9th Dec 2003 04:08 AM
Determine table names and column names in Access database Brian O'Haire Microsoft C# .NET 2 7th Dec 2003 01:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:57 AM.