R
rata
Guest
I am trying to get data from a query. The query selects the latest revision from a list. It returns only one field and will return only one row.
I am getting a Data Type Conversion Error when I run the following code.
I dimension recordsets and querydefs when the page loads. I have also checked the ADO and DAO references as per the recommendations here (I already lost time previously because of those settings.)
I am getting a Data Type Conversion Error when I run the following code.
Code:
Set qdfApp = dbs.QueryDefs("QryApprovedRev")
If qdfApp.ReturnsRecords = True Then
Set rstApp = qdfApp.OpenRecordset("SELECT RevName FROM qdfApp")
TxtApprev = rstApp!RevName
rstApp.Close
End If
I dimension recordsets and querydefs when the page loads. I have also checked the ADO and DAO references as per the recommendations here (I already lost time previously because of those settings.)