J
JT
I'm trying to use a sql statement to select the Dept and Branch from a table
for a specific customer number and where the groups does not start with 000.
I have tried writing the statement as follows:
vSQL = "SELECT [DEPT],[BR] from [Data] WHERE [CUST_NO] = '" & CSTMR & "'AND
MID([GROUP],1,3)<>""000"")"
However, it is still pulling in all of the groups even those that start with
000.
Can someone tell me what is wrong with this statement. Thank You very much!
for a specific customer number and where the groups does not start with 000.
I have tried writing the statement as follows:
vSQL = "SELECT [DEPT],[BR] from [Data] WHERE [CUST_NO] = '" & CSTMR & "'AND
MID([GROUP],1,3)<>""000"")"
However, it is still pulling in all of the groups even those that start with
000.
Can someone tell me what is wrong with this statement. Thank You very much!