Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default workgroup access connection from excel

Dim cnn As New ADODB.Connection
Dim rs As ADODB.Recordset
Dim dbName As String

Set cnn = New ADODB.Connection
dbName = "K:\Admin\Health and Safety Training.mdb"
cnn.Provider = "Microsoft.Jet.OLEDB.4.0"
cnn.Open dbName, "user", "user"

I have the above code to connect to an access database with workgroup
accounts. I get the following error when it gets to the last line of code -
"Cannot start your application. The workgroup information file is missing or
opened exclusively by another user". The workgroup information file is in the
same folder as the database and not in use. "user" is the UID as well as PWD

any help?

thanx
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default workgroup access connection from excel

found it ... just in case someone else needs it

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


MyConn.Provider = "Microsoft.Jet.OLEDB.4.0"
MyConn.Properties("Data Source") = "K:\Admin\Health and Safety
Training.mdb"
MyConn.Properties("Jet OLEDB:System database") = "K:\Admin\Health and
Safety.MDW"
MyConn.Open UserID:="user", Password:="user"

"Sean" wrote:

Dim cnn As New ADODB.Connection
Dim rs As ADODB.Recordset
Dim dbName As String

Set cnn = New ADODB.Connection
dbName = "K:\Admin\Health and Safety Training.mdb"
cnn.Provider = "Microsoft.Jet.OLEDB.4.0"
cnn.Open dbName, "user", "user"

I have the above code to connect to an access database with workgroup
accounts. I get the following error when it gets to the last line of code -
"Cannot start your application. The workgroup information file is missing or
opened exclusively by another user". The workgroup information file is in the
same folder as the database and not in use. "user" is the UID as well as PWD

any help?

thanx

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Excel and access update each other like a two way connection CmK Excel Discussion (Misc queries) 0 February 23rd 07 01:01 PM
ADO connection with workgroup Access database ca1358 Excel Programming 4 June 21st 06 06:13 AM
Excel/Access connection via ADO Loane Sharp Excel Programming 1 August 10th 04 01:17 PM
Excel/Access connection via ADO Loane Sharp Excel Programming 1 August 10th 04 12:15 PM
Import Data from Access Database in a Workgroup David Excel Programming 1 August 20th 03 11:06 PM


All times are GMT +1. The time now is 01:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"