G
Guest
Dear all,
I have a query named [Query_Name]. I want to transfer the recordset over to
Excel.
So by referring to the <http://www.mvps.org/access/modules/mdl0035.htm>, I
have the following codes:
…
Dim db As QueryTable
…
Set db = CurrentDb
....
Set rs = db.OpenRecordset("Query_Name", dbOpenTable)
Then I’ll get the following error:
Run-time error ‘13’ – Type mismatch.
The debugger will point to the “Set db = CurrentDb†statement.
What kinds of mistake I have made?
Thanks in advance!!
I have a query named [Query_Name]. I want to transfer the recordset over to
Excel.
So by referring to the <http://www.mvps.org/access/modules/mdl0035.htm>, I
have the following codes:
…
Dim db As QueryTable
…
Set db = CurrentDb
....
Set rs = db.OpenRecordset("Query_Name", dbOpenTable)
Then I’ll get the following error:
Run-time error ‘13’ – Type mismatch.
The debugger will point to the “Set db = CurrentDb†statement.
What kinds of mistake I have made?
Thanks in advance!!