Help for building a query string with double quotation mark, thanks a lot!

Joined
Jul 5, 2005
Messages
22
Reaction score
0
hi,

i have a query which include some double quotation marks as below, (Tb is table's variable name)

SELECT Switch(IsNull(Amount),"NULL",Amount<=10000,"0 to 10000",Amount<=20000,"10001 to 20000",Amount>20000,"20001 and up") AS Range, Count(SISID) AS NumStudents
FROM Tb
GROUP BY Switch(IsNull(Amount),"NULL",Amount<=10000,"0 to 10000",Amount<=20000,"10001 to 20000",Amount>20000,"20001 and up");


i want to build it as query sting in code,
for example,
...
dim strSQL as string

strSQL = "Select ...????..from " & Tb & "Group...????..."
...

how to deal with "" marks which is already in query?

Really thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top