Solved

dbgrid & access 2000

Posted on 2000-03-24
2
208 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Spell Check in VB6 13 152
Child Form in front 4 66
Export PDF Form fields to Access  or Excel  in Tab order 16 129
how to loop through and process two columns in excel 8 72
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

710 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