Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default working with MsAccess in multiuser environment: error Cannot start

Hi,

We are using an access database updated by vba in an Excel form flowing
between users. Some of the users have update authority and some of them have
read-only authority. Normally system works well but sometimes it locks the
MSAccess for update. I couldnt find the reason. Program which adds/deletes
the records 10 second ago starts to give error message: €Cannot start your
application. The workgroup information file is missing or opened exclusively
by another user€. No one has authority to enter design view of
tables/forms/reports except Admin.

Following is the code to connect to the MSAccess:

Dim dbs As DAO.Database
Dim wrkSec As Workspace
Dim rst As DAO.Recordset
DBEngine.SystemDB = €œC:\AccessAuthorityFile\SYSTEM.MDW€
Set wrkSec = DBEngine.CreateWorkspace("", user, pwd, dbUseJet)
€˜ERROR message on this line
Set dbs = wrkSec.OpenDatabase(MSAccessFile)

Help please.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default working with MsAccess in multiuser environment: error Cannot start

switch from DAO to ADO
set the recordset open to forward only if yuo just want to read, and set
the connection object = NOTHING as soon as the recordset has the data.
If you read data dynamically you can put a lock on the table .. the database
won't allow updates if somebody is reading data...ie there will be a lock on
the table



"KT1972" wrote:

Hi,

We are using an access database updated by vba in an Excel form flowing
between users. Some of the users have update authority and some of them have
read-only authority. Normally system works well but sometimes it locks the
MSAccess for update. I couldnt find the reason. Program which adds/deletes
the records 10 second ago starts to give error message: €Cannot start your
application. The workgroup information file is missing or opened exclusively
by another user€. No one has authority to enter design view of
tables/forms/reports except Admin.

Following is the code to connect to the MSAccess:

Dim dbs As DAO.Database
Dim wrkSec As Workspace
Dim rst As DAO.Recordset
DBEngine.SystemDB = €œC:\AccessAuthorityFile\SYSTEM.MDW€
Set wrkSec = DBEngine.CreateWorkspace("", user, pwd, dbUseJet)
€˜ERROR message on this line
Set dbs = wrkSec.OpenDatabase(MSAccessFile)

Help please.

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
Error on large Excel spreadsheet with VBA, written in '03 used inmixed '03 - '07 environment [email protected] Excel Discussion (Misc queries) 0 January 10th 08 06:05 AM
the Add-Inn working in Office XP environment but in Office 2000 Sudip Excel Programming 3 March 7th 07 02:08 AM
Start Excel inside MSaccess with a makro Lars[_2_] Setting up and Configuration of Excel 0 March 3rd 07 01:40 PM
When Running DDEInitiate, Error - Can't find MSAccess.exe? bmupward Excel Programming 0 July 21st 06 03:51 PM
pivotitems in a multiuser environment Kanan Excel Programming 0 March 3rd 04 05:16 PM


All times are GMT +1. The time now is 10:54 AM.

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

About Us

"It's about Microsoft Excel"