Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can Excel and access update each other like a two way connection | Excel Discussion (Misc queries) | |||
ADO connection with workgroup Access database | Excel Programming | |||
Excel/Access connection via ADO | Excel Programming | |||
Excel/Access connection via ADO | Excel Programming | |||
Import Data from Access Database in a Workgroup | Excel Programming |