Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dim as Database in A2K 1

Status
Not open for further replies.

LarryDeLaruelle

Technical User
May 19, 2000
1,055
US
Is there an A2K version of Dim dbTemp as Database?

I'm just converting myself (reluctantly) to A2K and bumped into this. I know that if I set the DAO 3.5 Object reference I can use the DAO.Database.

Just wondering if there is a comparable A2K version without using the DAO reference.

Thanks. Larry De Laruelle
ldelaruelle@familychildrenscenter.org

 
Microsoft recommends using ADO for data objects instead of DAO. You can still continue to use DAO if you want, but Microsoft's effort is going into expanding ADO.

Here are a couple of reference libraries.
ADOX
'- Microsoft ADO Ext. 2.6 for DDL and Security
ADODB
'-- Microsoft ActiveX data objects 2.6 library

ADOX is used to maintain tables and security. For instance, if you want to add user permissions to a table or create a new table. ADO handles the recordset objects and connections.

examples
Dim rst as ADODB.Recordset
Dim cn as ADODB.Connection
Dim cg as ADOX.Catalog
 
cmmrfrds:

Sounds like what I was looking for. Thanks.

Given this, is it no longer necessary to set the currentdb when using recordsets? Just dim the recordset suing the ADODB?

Thanks again. Larry De Laruelle
ldelaruelle@familychildrenscenter.org

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top