?
Solved

access 2000

Posted on 2000-01-23
2
Medium Priority
?
359 Views
Last Modified: 2010-05-02
1) i want to connect to an mdb file
 from visual basic 6.0
 i'm getting an error :
 unrecognized database format_
 'database path.mdb'
2)can i open a snap shot file (snp)
 without opening  the access application
 it self.
0
Comment
Question by:ruby_yeheskel
  • 2
2 Comments
 

Expert Comment

by:ViniT
ID: 2379705
If you installed Access2000, you should have the new Jet4 installed, so you can use ADO in order to open a connection with the database as follows:

Dim MyDB As ADODB.Connection
Set MyDB = New ADODB.Connection
MyDB.Open "ODBC;DBQ=filename.mdb;Driver={Microsoft Access Driver (*.mdb)};DriverId=281;FIL=MS"

Just add a reference to the ADO 2.1

Goodluck.

ViniT.
0
 

Accepted Solution

by:
ViniT earned 100 total points
ID: 2379710
If you installed Access2000, you should have the new Jet4 installed, so you can use ADO in order to open a connection with the database as follows:

Dim MyDB As ADODB.Connection
Set MyDB = New ADODB.Connection
MyDB.Open "ODBC;DBQ=filename.mdb;Driver={Microsoft Access Driver (*.mdb)};DriverId=281;FIL=MS"

Just add a reference to the ADO 2.1

Goodluck.

ViniT.

Ahh... by the way, about the snapshot, Im not sure it is possible what you want to do.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

592 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question