| | |
can we connect VB 6 wtih databases in Ms Office Access 2003?
Thread Solved
![]() |
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
http://www.timesheetsmts.com/adotutorial.htm
•
•
Join Date: Jun 2005
Posts: 4
Reputation:
Solved Threads: 1
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..
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..
•
•
Join Date: May 2005
Posts: 508
Reputation:
Solved Threads: 19
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
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
•
•
Join Date: Jun 2005
Posts: 1
Reputation:
Solved Threads: 1
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.
•
•
Join Date: May 2005
Posts: 508
Reputation:
Solved Threads: 19
Why not just do this in sql?
•
•
Join Date: May 2005
Posts: 508
Reputation:
Solved Threads: 19
I rest my case.... :cheesy:
•
•
Join Date: Oct 2006
Posts: 4
Reputation:
Solved Threads: 1
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:
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
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)
Provider = Microsoft.Jet.OLEDB.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
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Error in tables with OFF 2003 and XP sp2
- Next Thread: VB exe
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic beginner birth bmp calculator cd cells.find click client code college connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows






