Kiwi-Wombat
Registered User.
- Local time
- Today, 07:30
- Joined
- Aug 2, 2004
- Messages
- 56
HI folks
I see this code commonly
To what does CurrentDb refer? Does it refer to an actual table that is open or is it an object like 'Recordset' and 'Database'?
I previously posted a question about a form with 4 unlinked tables. Pat Hartman kindly assisted with that query but it means the the form has no recordsource. The listboxes on the form individually look at their respective tables.
So if CurrentDb means an actual open table which one does it refer to?
Thanks
I see this code commonly
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("yourTableName")
Dim rst As Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("yourTableName")
To what does CurrentDb refer? Does it refer to an actual table that is open or is it an object like 'Recordset' and 'Database'?
I previously posted a question about a form with 4 unlinked tables. Pat Hartman kindly assisted with that query but it means the the form has no recordsource. The listboxes on the form individually look at their respective tables.
So if CurrentDb means an actual open table which one does it refer to?
Thanks