| | |
Database Connection Problem
Thread Solved |
•
•
Join Date: Oct 2009
Posts: 23
Reputation:
Solved Threads: 0
i have created a database for subscriptions in MS Access 2007. I want to link it with my forms using the code below but its saying unrecognised database format.
Dim conn As Connection
Set conn = New Connection
conn.Open "PROVIDER=Microsoft.Jet.OLEDB.3.51;Data Source=C:\subscriptions2.mdb".......
Now i have converted it to Access 2000 format and it wont work. I have also converted to acces 2002-2003 but it doesnt work either. i wanted to convert it to Access 97 format but that option is not there on Save As in Access.
Can anyone help because i cant link with the database.
Thank You
Dim conn As Connection
Set conn = New Connection
conn.Open "PROVIDER=Microsoft.Jet.OLEDB.3.51;Data Source=C:\subscriptions2.mdb".......
Now i have converted it to Access 2000 format and it wont work. I have also converted to acces 2002-2003 but it doesnt work either. i wanted to convert it to Access 97 format but that option is not there on Save As in Access.
Can anyone help because i cant link with the database.
Thank You
•
•
Join Date: Mar 2009
Posts: 828
Reputation:
Solved Threads: 150
0
#2 Oct 16th, 2009
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
•
•
Join Date: Jul 2009
Posts: 13
Reputation:
Solved Threads: 0
0
#5 Oct 22nd, 2009
Try to change your Provider ,., try to use Microsoft Jet 4.0,.I think it's the latest version..,if there are available service packs on their site...,download it and install it on your machine...My MS Access version is 2003, and my programs works smoothly in both 3.51 and 4.0....
[...Just trying to help...]
[...Just trying to help...]
•
•
Join Date: Jan 2008
Posts: 248
Reputation:
Solved Threads: 35
0
#7 31 Days Ago
Your connection string is faulty. You need to declare the connection first.
I hope this solves your problem.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim conn As ADODB.Connection Set conn = New ADODB.Connection conn.Open "PROVIDER=Microsoft.Jet.OLEDB.3.51;Data Source=C:\subscriptions2.mdb" 'Ensure that you have referenced MS ActiveX Data Objects Library in Project/Refrences. 'You can also use Jet 4.0 as below conn.Open "PROVIDER= Microsoft.Jet.OLEDB.4.0;persist security info=false;data source = C:\subscriptions2.mdb"
I hope this solves your problem.
Please mark questions as answered when done.
Be the ONE!!!
Be the ONE!!!
![]() |
Similar Threads
- Creating sql database connection in asp.net web application through C# (C#)
- Remote SQL Server Database Connection Problem using VB6 using OLEDB (Visual Basic 4 / 5 / 6)
- Database connection problem (C#)
- VB.NET Database Connection Problem (VB.NET)
- problem with database Connection in applet (Java)
- Problem with database connection (JSP)
- ASP file with database connection problem (ASP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: creating lottery interface
- Next Thread: Where cani download MSDN Library
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





