EXCEL SQL Problem

B

brucelim80

hi can anyone help me with this problem?

I have a excel raw datafile call holdmail register.xls which is
protected with password when open.

When i use another excel to query using ADODB connection as show below



Dim cn As ADODB.Connection
Set cn = New ADODB.Connection


With cn
..Provider = "Microsoft.Jet.OLEDB.4.0"
..ConnectionString = "Data Source=C:\Documents and
Settings\43230121\My Documents\Working folder\Holdmail\Hold mail
register.xls ;" & _
"Extended Properties=Excel 8.0; User ID=HSBC;
password=holdmail"
..Open
End With


It show me an error as show below
Cannot Start Application. The Workgroup information file is missing or
opened exclusively by another user



The problem is that the file was not open.
Can anyone help me ?

Thank you,
 
R

raypayette

I know that older versions of Excel had some "database" capabilities
that have not been continued. Perhaps this is the cause of your
problem.
 
T

tony h

what happens

A - if you try to open it as a spreadsheet - ie do you get the same
error?
B - if you try to open it as a spreadsheet in code?

might help to diagnose the problem
 
B

brucelim80

hi

i have encountered the same problem when i create a new workshee
protected with password. The password is used to open the excel file.

When i wrote another excel to query using ADODB Connection. It wil
give me the same error.

When i open the raw data, it working fine after entering the passwor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top