473,385 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ADO Connection.Open fails

The statement that begins with o.open in the procedure below raises
either a "Type Mismatch" error or a "Method ~ of Connection object
failed" error on SOME workstations. Does anyone have a clue as to
what might be wrong? Could the Jet OLEDB driver be at fault here?

Any help would be appreciated.

Dan Fisherman

Private Sub Command1_Click()
Dim o As ADODB.Connection

On Error GoTo ProcError
Set o = New ADODB.Connection
o.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program
Files\MacPac\Personal\ci.mdb"
Exit Sub
ProcError:
MsgBox Err.Number & ": " & Err.Description, "AGG CI Test"
Exit Sub
End Sub
Nov 12 '05 #1
1 5072
Make sure the other stations have equal or newer MDAC's.

On your development computer, check the version of ADO that you referenced
and make sure that the clients are running that version or greater. ADO is
backward compatible, no guarantee that it is forward compatible.

Check http://www.microsoft.com/data for the latest Microsoft data access
components.
"Daniel Fisherman" <df********@optonline.net> wrote in message
news:a9**************************@posting.google.c om...
The statement that begins with o.open in the procedure below raises
either a "Type Mismatch" error or a "Method ~ of Connection object
failed" error on SOME workstations. Does anyone have a clue as to
what might be wrong? Could the Jet OLEDB driver be at fault here?

Any help would be appreciated.

Dan Fisherman

Private Sub Command1_Click()
Dim o As ADODB.Connection

On Error GoTo ProcError
Set o = New ADODB.Connection
o.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program
Files\MacPac\Personal\ci.mdb"
Exit Sub
ProcError:
MsgBox Err.Number & ": " & Err.Description, "AGG CI Test"
Exit Sub
End Sub

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gilgantic | last post by:
I get an "Invalid file" in my MIDlet when I tried to read a .txt file, using Connection.open(). My phone is a Nokia 3595 with mMode technology by AT&T. Here is my source code in my MIDlet: try...
3
by: RP | last post by:
This code usually works the first time I run it, but if I hit refresh it fails with: "Unspecified error - /cosmetic/ask_dup.asp, line 12" which is the connection.open statement. Makes me...
6
by: wk6pack | last post by:
Hi, I have a question about my coding practise. I have a class method to return a value from a database. I open the connection do my search and dispose the reader. Open the reader with a new...
0
by: gm | last post by:
Immediately after generating the Access application from the Source Safe project I get: "-2147467259 Could not use ''; file already in use." If Access database closed and then reopened I get:...
2
by: Gary | last post by:
If you develop a stand alone c# windows application that only reads from a single local Access database, do you need to close the connection each time you navigate to a different record? No other...
14
by: martin1 | last post by:
All, I want to check wether db connection/open or not, if not it will post db connection error to user in message box The code is like: Dim objConnection As New SqlConnection _...
2
by: breadon | last post by:
Hello there Am having problems with: Set cnn = New ADODB.Connection ........ With cnn .ConnectionString = CurrentProject.Connection .Open End With
22
by: robertgregson | last post by:
Using C#, .NET3.5, Visual Studio 2008 and WCF on Windows VISTA SP1, I have written a service, service host (as a C# console application) and a client. The service uses...
1
by: ErikJL | last post by:
I have a simple webservice that performs a SELECT query against a database, and then an INSERT statement on the same database/table. The problem arises at the time when we create the second OleDB...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.