accessman2
Registered User.
- Local time
- Yesterday, 19:10
- Joined
- Sep 15, 2005
- Messages
- 335
Hi,
I have a question. It's interesting.
In MS Access, I create local table, named table1, and use ODBC linked tables from SQL Server to MS Access, named tbl1.
Suppose I input 5 records in table1
I input 3 records in tbl1
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("table1")
MsgBox rs.RecordCount
//it gives out 5. it is correct
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("tbl1")
MsgBox rs.RecordCount
//it gives out 1. it is not correct
Does DAO support ODBC linked tables?
Thanks.
I have a question. It's interesting.
In MS Access, I create local table, named table1, and use ODBC linked tables from SQL Server to MS Access, named tbl1.
Suppose I input 5 records in table1
I input 3 records in tbl1
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("table1")
MsgBox rs.RecordCount
//it gives out 5. it is correct
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("tbl1")
MsgBox rs.RecordCount
//it gives out 1. it is not correct
Does DAO support ODBC linked tables?
Thanks.