944,057 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Jun 8th, 2005
0

can we connect VB 6 wtih databases in Ms Office Access 2003?

Expand Post »
ai..
i have try alot of times connecting the database in Ms Office Access 2003 with VB 6. bUT there is error when i try to connect between "record source" in vb with data that i save.Can anyone help me and give me some advise,references or way to solve this prob.Plz..I reallly appreciate.Thanx
Reputation Points: 10
Solved Threads: 0
Newbie Poster
an_nurif83 is offline Offline
3 posts
since May 2005
Jun 9th, 2005
0

Re: can we connect VB 6 wtih databases in Ms Office Access 2003?

Here is a fantastic tutorial covering the use of ADO with Visual Basic.... This should help quite a bit:
http://www.timesheetsmts.com/adotutorial.htm
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Jun 13th, 2005
0

Re: can we connect VB 6 wtih databases in Ms Office Access 2003?

hello there,
as far as i know vb6 can only manage access 97 file formats.
so if you wanna get access to your database you should convert it into access 97 file format.
to do that go to Tools >> Database Utilities >> Convert Database >> To Access 97 file Format .after that you will not be able to modify your database.
i am not sure if you have already done that , but i hope this helps.
hatem..
Reputation Points: 10
Solved Threads: 1
Newbie Poster
hatem is offline Offline
4 posts
since Jun 2005
Jun 13th, 2005
0

Re: can we connect VB 6 wtih databases in Ms Office Access 2003?

Ok First off:

http://www.microsoft.com/downloads/d...displaylang=en


Second..
Add these librarys in your project
Microsoft Activex Data Objects Recordset 2.7 Library
Microsoft Activex Data Objects 2.7

And finally..

http://support.microsoft.com/default...b;en-us;238401
Reputation Points: 12
Solved Threads: 19
Posting Pro
techniner is offline Offline
521 posts
since May 2005
Jun 14th, 2005
0

Re: can we connect VB 6 wtih databases in Ms Office Access 2003?

You HAVE to convert the database file to a 97 format. Vb6 was written when office 97 was out so they only desgined it to be compatible with 97 format. When you convert you canoot edit the file. You'll have to edit it in 2003 then convert it again. Best to use the visual data tool in vb or get a copy of office 97.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
thomas49th is offline Offline
2 posts
since Jun 2005
Jun 14th, 2005
0

Re: can we connect VB 6 wtih databases in Ms Office Access 2003?

Why not just do this in sql?
Reputation Points: 12
Solved Threads: 19
Posting Pro
techniner is offline Offline
521 posts
since May 2005
Jun 16th, 2005
0

Re: can we connect VB 6 wtih databases in Ms Office Access 2003?

Service pack 6 would fix this problem and add the libraries techniner said. You do not need to change the format to 97. The access 2003 default database is created as an access 2000 database anyway.
Reputation Points: 20
Solved Threads: 5
Junior Poster
jwshepherd is offline Offline
123 posts
since Jun 2005
Jun 17th, 2005
0

Re: can we connect VB 6 wtih databases in Ms Office Access 2003?

I rest my case.... :cheesy:
Reputation Points: 12
Solved Threads: 19
Posting Pro
techniner is offline Offline
521 posts
since May 2005
Oct 29th, 2006
0

Re: can we connect VB 6 wtih databases in Ms Office Access 2003?

I hope this is not too late.
VB6 (and even VB5) can work with Access 2000 and 2003 databases using either ADO or DAO object. For ADO, just specify Jet 4.0 as a prvider:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Provider = Microsoft.Jet.OLEDB.4.0;
With DAO it is something different. VB5 and VB6 use MS Jet 3.5 and DAO 3.51, and for Access 2003 and 2000 you need DAO 3.6 and MS Jet 4.0.
So, if you do not have MS Jet 4.0 installed on your computer, you should download it form http://support.microsoft.com/?kbid=829558

Then in your VB project open menu Project->References
Then turn off the Microsoft DAO 3.51 Object Library (if checked) and
Check (turn on) the Microsoft DAO 3.6 Object Library.

And that's all. Now your project will work with Access 2000 and 2003 databases using DAO object.

I hope this helps.

BR,
Faik
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Faik is offline Offline
4 posts
since Oct 2006
Oct 29th, 2006
0

Re: can we connect VB 6 wtih databases in Ms Office Access 2003?

Yup. VB6 has also the ability to use the "createobject" function for late binding of objects. Which basically means, that any program (including office 2k / 2003) that has a public base class IS ACCESSIBLE from vb6.....
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Moving Smileys or Emotions
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: reading data using serial port





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC