Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UPDATE or INSERT including apostrophe

Status
Not open for further replies.

joel009

Programmer
Joined
Jul 7, 2000
Messages
272
Location
US
Hi,
Trying to use VB6.0sp4 with oracle8 to include an apostrohe in a text string and am unable to do so. Have it working in Access and am trying to convert the application to Oracle. What am I doing wrong. I build a string and use the execute method from the dataenvironment. Can't get the syntax.

Joel
 
Can you post the code so that I can take a look???

Simon
 
Most likely you'll have to put in a double apostrohe to get it to take. For example if your data is O'Mally then you'll have to make it O''Mally. That's not a double quote, it's two single quotes next to each other. Snaggs
tribesaddict@swbell.net
 
Snaggs, Got the same reply from 2 sources and it works, thanks. I wonder why it's not documented better in VB help, or am I just a neophite?

Simmon, from the immediate window.

UPDATE TABLE.COURSES SET TABLE.COURSES.COURSEDESCRIPTION = 'Cathy''s' Where (((TABLE.COURSES.COURSEKEY) = 1))

Thanks again.

Joel
 
It wouldn't be as fun if they gave us ALL the pieces to the puzzle, but it'd sure be a lot easier... Snaggs
tribesaddict@swbell.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top