Hi, I get a Runtime error '13' Type Mismatch. error
My code is:
Dim rs As Recordset
Dim SQL As String
SQL = "SELECT count(table1.test) as TestCount FROM table1"
Set rs = CurrentDb().OpenRecordset(SQL)
Me.txtTest = rs("TestCount"
rs.Close
Tried the ADODB for Dim rs As ADODB.Recordset and still the same error.
Any thoughts?
Txs in advance
Mike
My code is:
Dim rs As Recordset
Dim SQL As String
SQL = "SELECT count(table1.test) as TestCount FROM table1"
Set rs = CurrentDb().OpenRecordset(SQL)
Me.txtTest = rs("TestCount"
rs.Close
Tried the ADODB for Dim rs As ADODB.Recordset and still the same error.
Any thoughts?
Txs in advance
Mike