I am using this sql statement called from a class module
RST.Open "select DISTINCT REPNAME, E_MAILADDR, ILEC, LEVEL] from escalateemail where ilec = " & "'" & strIlec & "'" & " AND " & strState & " = 1 order by [level]", CN, adOpenForwardOnly, adLockReadOnly, adCmdText
strState is a column name in the table.
When I run the query from sql analyzer I get my record set, when I run it form my code I get the field count right but no records...any suggestions?
PS I have tried assigning the sql statement to a variable then runing it with the same result.
RST.Open "select DISTINCT REPNAME, E_MAILADDR, ILEC, LEVEL] from escalateemail where ilec = " & "'" & strIlec & "'" & " AND " & strState & " = 1 order by [level]", CN, adOpenForwardOnly, adLockReadOnly, adCmdText
strState is a column name in the table.
When I run the query from sql analyzer I get my record set, when I run it form my code I get the field count right but no records...any suggestions?
PS I have tried assigning the sql statement to a variable then runing it with the same result.