I run a query on a regular MSSQL table and it returns a RecordSet just fine. However, when I try to query a "view", I only ever get an empty RecordSet. Any help?
RS.RecordCount always == -1.
Code:
Dim DB : Set DB = CreateObject("ADODB.Connection")
Dim RS : Set RS = CreateObject("ADODB.RecordSet")
Dim sQuery
DB.Open CONNECTION_STRING
sQuery = "SELECT * FROM SampleView"
RS.Open sQuery, DB, 3, 3, 1
RS.RecordCount always == -1.