Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

Trouble Linking VB6 to Access2000 Databases

Recently i upgraded my version of officce to 2000 , and when i was testing it , i tryed to use an access2000 database on VB6 Pro , and didnt work , Could somebody , tell me how could i solve my problem .
If u can email me at gyzbo@oninet.pt
Thanks
0
gyzbo
Asked:
gyzbo
  • 4
  • 2
  • 2
  • +2
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
What are you using: DAO or ADO?

If you use DAO, you need to reference DAO 3.6 (instead of 3.5x).

0
 
st_steveCommented:
VB6 and Access 2000 are not compatible (by default)..you have to download some updates so that VB6 will recognise the Access 2000 DB format...first upgrade your VB6 to SP3...

get VB6SP3 at this adderss:

http://updates.zdnet.com/frame.asp?URL=http%3A%2F%2Fmsdn%2Emicrosoft%2Ecom%2Fvstudio%2Fsp%2Fdefault%2Easp


0
 
st_steveCommented:
and you also need to upgrade your JetEngine to the latest...get that here:

http://www.microsoft.com/data/download_21242023.htm
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
RuchiCommented:
visit the link
http://support.microsoft.com/support/kb/articles/q238/4/01.asp. It will tell you how to get unrecognized database format error message when upgrading to access 2000.
0
 
gyzboAuthor Commented:
thanks
0
 
st_steveCommented:
thanks to you too for the points. :) glad I could help....
0
 
st_steveCommented:
thanks to you too for the points. :) glad I could help....
0
 
kojotCommented:
I upgraded VB with SP3 and downloaded My Yet Engine. I stated DAO 3.6 in the reference list, then I added Data control and pointed to Access 2000 Database. I failed (unrecognized data ...). Then I tried to establish data link through Data control manually and I failed (Unrecognized...).

Is there another way?

Please help! It seems that it worked for gyzbo ... what am I doing wrong?

kojot.

0
 
RuchiCommented:
In your Form_Load event, put the following code:

Private Sub Form_Load()
Dim db As Database
Set db = DBEngine.OpenDatabase("c:\yourfile.mdb")
Set Data1.Recordset = db.OpenRecordset(tablename or SQL Statement)
End Sub

Set the datasource of your bound controls to data1. You must then manually type in the datafield name, you cannot use the dropdown. You will have to bind your controls manually to the data control using the field names and add some code to make it work with DAO and MS Access 2000. This should work.
0
 
kojotCommented:
Thanx!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 4
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now