Database Object

accessman

New member
Joined
Sep 13, 2005
Messages
3
Programming Experience
Beginner
Hi:
I have a question in VB. When I do like this:
Dim db As Database

It doesn't work, because the MS Access does not has "Database" object. Why? Do I need to set something before?
Thanks.
 
Okay...
Is this in VB, VBA, Access, VB.NET, or ASP.NET?

-tg
 
I am working MS Access 2002 version. I write the Visual Basic in the Forms like this:

Dim db As Database

But, "Database" doesn't work? Please let me know. Thanks.
 
You still haven't been completely clear. Is this a VB.NET project from which you're trying to interact with an Access MDB file, or is it a project you've created in Access and you're writing VBA code? If it's a VB.NET project, are you trying to automate Access or are you trying to use ADO.NET? Where did you get the idea that this Database class should exist?
 
Back
Top