X
xpengi
hi,
i have a query which include some double quotation marks as below, (T
is table's variable name)
SELECT Switch(IsNull(Amount),"NULL",Amount<=10000,"0 t
10000",Amount<=20000,"10001 to 20000",Amount>20000,"20001 and up") A
Range, Count(SISID) AS NumStudents
FROM Tb
GROUP BY Switch(IsNull(Amount),"NULL",Amount<=10000,"0 t
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 thank
i have a query which include some double quotation marks as below, (T
is table's variable name)
SELECT Switch(IsNull(Amount),"NULL",Amount<=10000,"0 t
10000",Amount<=20000,"10001 to 20000",Amount>20000,"20001 and up") A
Range, Count(SISID) AS NumStudents
FROM Tb
GROUP BY Switch(IsNull(Amount),"NULL",Amount<=10000,"0 t
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 thank