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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"As Database"

Status
Not open for further replies.

JimCowan

Technical User
Jul 12, 2000
10
CA
Using ACCESS and VBA in Office 2000, I get an error message which says "As Database" does not exist as a type. Yet most of the sample code uses it in '97 and '95; ie. "Dim dbs As Database".
Is there something new in '00, or am I missing something in the Module or elsewhere?
 
New object model:

Used to be

Dim dbs as Database
Set dbs = currentDb()

Is

Dimm cnn as ADODB.Connection
Set cnn = CurrentProject.Connection

I'll be posting a FAQ that outlines 97 vs 2000 later this week
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top