R
Richard
Hi
When I open a recordset using the syntax below, it returns nothing, but when
I copy the strSql in the immediate window and paste in the SQL view in the
queries window and runs the query it returns with records.
Why is it so and how do I overcome this?
Thanks in advance
Richard
strSql = "SELECT DISTINCT Company.CompanyId, Company.Building,
Company.Tower, Company.BeatUpdate " & _
"FROM Company " & _
"WHERE (((Company.Tower) Like ""Tower*"") AND
((Company.BeatUpdate)=False));"
When I open a recordset using the syntax below, it returns nothing, but when
I copy the strSql in the immediate window and paste in the SQL view in the
queries window and runs the query it returns with records.
Why is it so and how do I overcome this?
Thanks in advance
Richard
strSql = "SELECT DISTINCT Company.CompanyId, Company.Building,
Company.Tower, Company.BeatUpdate " & _
"FROM Company " & _
"WHERE (((Company.Tower) Like ""Tower*"") AND
((Company.BeatUpdate)=False));"