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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quotes in database fields workaround 2

Status
Not open for further replies.

Genotix

Programmer
Dec 16, 2004
53
0
0
NL
Hi there,

Is there a way to "escape" certain reserved characters when they're put into a string which I want to insert in a database field?
The problem I have now is that VB6 gives me an error when i'm using a quote in the text field.

Thanx for your replies!

Eric

Linux IS userfriendly.
It's only very selective about who it's friends are.
 
Oh yes there is. use something like this

variable = replace(variable, "'", "''")
 
See also thread222-932658. Other threads can be found discussing this issue by using the search function.

zemp
 
@Zemp

It's not that easy to use the search function when you're not that good in English.
I know how to phrase a question but find it very hard to use the right words in a search.

Linux IS userfriendly.
It's only very selective about who it's friends are.
 
@pkailas

Thanx just wat I needed

Linux IS userfriendly.
It's only very selective about who it's friends are.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top