Advertisement

01.09.2003 at 04:40AM PST, ID: 20449558
[x]
Attachment Details

How using of qoutation in SQL expressions in Vb6

Asked by ghodsi in VB Database Programming

Tags: qoutation, vb6, sql

For using of  SQL expressions in a recordset of  VB6 we use variable string
for example
    Dim strsql AS String
    strsql="SELECT code FROM material WHERE name=' " & st & " ' "
How using of double qoutation and qoutation is important  ( ' ) and ( " )
now if we  want to use one string into another string we use qoutation ( ' )
st is a string variable if we want to use strings  in st and these strings contain qoutation
it cause one error
for example :
                       Denhard's solution------------>st
                       Rob's------------>st
excuse me for my english it isn't good
thank everybody reply me
Start Free Trial
[+][-]01.09.2003 at 04:45AM PST, ID: 7693481

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: VB Database Programming
Tags: qoutation, vb6, sql
Sign Up Now!
Solution Provided By: UncleMatt
Participating Experts: 1
Solution Grade: B
 
 
[+][-]01.09.2003 at 08:59AM PST, ID: 7695257

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32