Solved

dbgrid & access 2000

Posted on 2000-03-24
2
207 Views
Last Modified: 2010-05-02
i am trying to read a database using a data control, the following error ocurs<<<Unrecognized database format <filename>. (Error 3343)>>>.

other forms are ok reading. the code i use is<<  Me.Data1.DatabaseName = (App.Path & "\NewMaster.mdb")

  Me.Data1.RecordSource = "select * from tblcustomers"

it sops at data1.refresh

i tried to repair database as suggested, but same problem. same data controls used in Access 97 dbase, works ok.

many thanks
0
Comment
Question by:sml41
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
okcman earned 70 total points
ID: 2657559
http://www.microsoft.com/data/ado/adotechinfo/dao2ado.htm

here is a link about ADO and DA0 and access2000
 To add these references in Visual Basic:

Open a project.
From the Project menu select References…
From the list, select "Microsoft ActiveX Data Objects 2.1 Library."
From the list, select "Microsoft ADO Ext. 2.1 for DDL and Security."
From the list, select "Microsoft Jet and Replication Objects 2.1 Library."
Click OK.

they explained that the preferred way is  to ADO and do this:


Dim cnn As New ADODB.Connection
cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Nwind.mdb;"

if you are using both, they both have to be defined explicitly


hope this helps :)  


0
 

Author Comment

by:sml41
ID: 2737357
Yes many thanks, it works ok
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

756 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