logo
Previous Thread
Next Thread
Print Thread
Joined: Apr 2005
Posts: 1
C
cha28 Offline OP
Newbie
OP Offline
Newbie
C
Joined: Apr 2005
Posts: 1
I'm writing an old school asp script to pull data from an Oracle 9i DB and insert it into an Access97 DB (long story), it works until it hits the dreaded Apostrophe, I've tried the Replace function with no luck, here's my code:

FieldTemp = oRs(9)
Field9 = Replace(FieldTemp,"'","''")

Here's the error:
Syntax error (missing operator) in query expression ''Bob O'MALLEY','1938131','2005','Q1', '4/27/2005 8:22:39 AM')'

(Data changed to protect the not so innocent)

I have keyboard indentations in my forehead...please help!

Chris.

Sponsored Post Advertisement
Joined: Jan 2004
Posts: 22,934
Likes: 4
BellaOnline Editor
Highest Posting Power Known to Humanity
Offline
BellaOnline Editor
Highest Posting Power Known to Humanity
Joined: Jan 2004
Posts: 22,934
Likes: 4
Try just two single apostrophes in a row, I think that's what Access uses ...


Lisa Shea, Low Carb and Video Games Editor
Low Carb Forum

Moderated by  Lisa LowCarb 

Link Copied to Clipboard
Brand New Posts
Review of Boost Your Online Brand: Make Creative A
by Digital Art and Animation - 04/25/24 07:04 PM
Psalm for the day
by Angie - 04/25/24 09:21 AM
Mother's Day Gift Ideas to Sew
by Cheryl - Sewing Editor - 04/24/24 06:08 PM
Astro Women - Birthdays
by Mona - Astronomy - 04/24/24 03:37 PM
2024 - on this day in the past ...
by Mona - Astronomy - 04/24/24 03:33 PM
Check Out My New Website Selective Focus
by Angela - Drama Movies - 04/24/24 01:47 PM
Inspiration Quote
by Angie - 04/23/24 04:43 PM
Sew a Garden Flag
by Cheryl - Sewing Editor - 04/17/24 01:24 PM
Review - Notion for Pattern Designers: Plan, Organ
by Digital Art and Animation - 04/17/24 12:35 AM
Review - Create a Portfolio with Adobe Indesign
by Digital Art and Animation - 04/17/24 12:32 AM
Sponsor
Safety
We take forum safety very seriously here at BellaOnline. Please be sure to read through our Forum Guidelines. Let us know if you have any questions or comments!
Privacy
This forum uses cookies to ensure smooth navigation from page to page of a thread. If you choose to register and provide your email, that email is solely used to get your password to you and updates on any topics you choose to watch. Nothing else. Ask with any questions!


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2022 Minerva WebWorks LLC. All rights reserved.


Powered by UBB.threads™ PHP Forum Software 7.7.5