Hi,
I'm really trying to get my head around referring to tables etc via VBA, from within Access 2000.
I'm getting confused by ADO, DAO etc.
I can easily refer to a table in the current database and manipulate records within that table with:
[tt]
Set rst = CurrentDb.OpenRecordset("tblMyTable", dbOpenDynaset)
[/tt]
this is with or without defining rst as a recordset.
Examples however, show: Dim dbs as database and when I try this I get: 'User defined type not defined'.
Database is not a type in 2000 obviously.
I assume this is down to a library that I need, but what is it called, and more importantly where can I get it? Or, what is now the replacement?
I have the Office 2000 cd's, and VB 6 cd's but can't find any obvious files.
There are reams of info. on this VBA subject, and I know VB pretty well (as a developer in other areas), but if you know of a site on the net that 'cuts to the chase' I would be grateful.
A quick explanation of this prob. here would also be appreciated.
Thanks a lot in advance,
Darrylle
"Never argue with an idiot, he'll bring you down to his level - then beat you with experience." darrylles@totalise.co.uk
I'm really trying to get my head around referring to tables etc via VBA, from within Access 2000.
I'm getting confused by ADO, DAO etc.
I can easily refer to a table in the current database and manipulate records within that table with:
[tt]
Set rst = CurrentDb.OpenRecordset("tblMyTable", dbOpenDynaset)
[/tt]
this is with or without defining rst as a recordset.
Examples however, show: Dim dbs as database and when I try this I get: 'User defined type not defined'.
Database is not a type in 2000 obviously.
I assume this is down to a library that I need, but what is it called, and more importantly where can I get it? Or, what is now the replacement?
I have the Office 2000 cd's, and VB 6 cd's but can't find any obvious files.
There are reams of info. on this VBA subject, and I know VB pretty well (as a developer in other areas), but if you know of a site on the net that 'cuts to the chase' I would be grateful.
A quick explanation of this prob. here would also be appreciated.
Thanks a lot in advance,
Darrylle
"Never argue with an idiot, he'll bring you down to his level - then beat you with experience." darrylles@totalise.co.uk