Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double Quotes in Variables
Message
 
To
09/09/2002 13:12:48
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00698389
Message ID:
00698464
Views:
9
>I am reading the contents of a text file into VB variables. Some of the text contain two single quotes in succession ''. I need to replace the two '' with one " and then insert into a recordset. I am not using the insert statement I am using:
>
>rs.addnew
>rs!field = variable
>rs.update
>
>How do I go about this?
>
>Thanks!

try
rs!field = Replace(variable, "''", Chr(34))
Venelina Jordanova

Outsourcing IT Services Ltd.
Previous
Reply
Map
View

Click here to load this message in the networking platform