BenSteckler
Addicted to Programming
- Local time
- Today, 18:54
- Joined
- Oct 4, 2000
- Messages
- 44
Hi Everyone,
I have a problem.
I am trying to open 2 recordsets. But when I run the code, it displays a message "Type Mismatch." Can someone look at my code and tell me what I am doing wrong?
Thanks
BDS
I have a problem.
I am trying to open 2 recordsets. But when I run the code, it displays a message "Type Mismatch." Can someone look at my code and tell me what I am doing wrong?
Code:
Dim dbs As Database
Dim rs As Recordset, rsa As Recordset, sql As String, sqlA As String
Set dbs = CurrentDb
Set rs = dbs.openrecordset("Table1", dbOpenDynaset)
Set rsa = dbs.openrecordset("Table2", dbOpenDynaset)
Thanks
BDS