What is wrong with this:
cmd.CommandText = "SELECT DISTINCT EMPNO,ACTIVESTAT " _
& "FROM BASSEARN " _
& "WHERE ACTIVESTAT="A"" _
& " ORDER BY EMPNO"
I keep getting syntax error. Have tried everything I can think of.
I can make this work ok if I type the SQL in a text box and then refer to the text property like this:
cmd.CommandText = txtBox.text
Somehow the concantenation(phew!!) must be wrong.
Thank You for any help, anybody.
TNN, Tom
TNPAYROLL@AOL.COM
TOM
cmd.CommandText = "SELECT DISTINCT EMPNO,ACTIVESTAT " _
& "FROM BASSEARN " _
& "WHERE ACTIVESTAT="A"" _
& " ORDER BY EMPNO"
I keep getting syntax error. Have tried everything I can think of.
I can make this work ok if I type the SQL in a text box and then refer to the text property like this:
cmd.CommandText = txtBox.text
Somehow the concantenation(phew!!) must be wrong.
Thank You for any help, anybody.
TNN, Tom
TNPAYROLL@AOL.COM
TOM