?
Solved

Access database doesn't always open in shared mode

Posted on 2010-11-12
7
Medium Priority
?
1,980 Views
Last Modified: 2012-05-10
I have a split access database that is shared by 6 users.  I have put a copy of the "Frontend" database on each of their computers with a desktop shotcut to open it.  The problem is that when they use the shortcut, the "backend" database sometimes opens in an exclusive mode. Is there some way I can guarantee that the database opens in a non-exclusive mode?
0
Comment
Question by:RSteeg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 2000 total points
ID: 34120086
This will be due to one of two things.
One or more users have the Default open mode for their Access installation set to Exclusive rather than Shared
or - and much more likely-
one or more of the users do not have full permissions on the FOLDER containing the database file(s) .

If such a user opens the database before anyone else that will cause the problem you are seeing.

(A very unlikely, but possible scenario, is that the first person into the app is opening something in the backend in design view ).
0
 
LVL 2

Expert Comment

by:dmlyo150
ID: 34286904
I once had this problem -I tried deleting the tableDefs and re-linking them after the FrontEnd was opened but this screwed up my objects -Queries, Forms and possibly Reports. peter57r said that its possible a usere does not have full permissions to the Folder -which means when they open the MDB FrontEnd, and the Link to the tables is refreshed, the LDB for the BackEnd is not created -locking everyone else OUT!
0
 

Author Comment

by:RSteeg
ID: 34321486
I have changed the permissions on the folders containing these db's, and the problem still persists.
0
10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

 
LVL 77

Expert Comment

by:peter57r
ID: 34324821
Does it make any diference whether the user opens the database from the shortcut or just by double-clicking the front-end file?
0
 

Author Comment

by:RSteeg
ID: 34333972
All of the users open the front end db, which is local on their C drive with a shortcut I put on their desktops. The frontend db's are linked to the backend tables which are on a shared network drive.  All of the users have been given full control of the directory containing the backend db.
0
 
LVL 5

Expert Comment

by:Kev
ID: 37551123
May I suggest that you  do 2 things..

1. Change the short cut properties to force /runtime eg: change properties to:

"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /runtime \\UNCFilePath\DBFrontEnd.mde

This will ensure users only open the DB in /runtime.

2. Add some code to your startup form to test if the DB has been opened in /runtime, if not, kick them out. I sue the following code in my DB's

    If SysCmd(acSysCmdRuntime) = False Then
            If sysSecurityBackDoorCheck(strUser) <> True Then
               MsgBox "You can not run this application OUTSIDE of the runtime environment." & vbCrLf & vbCrLf & "You are likely to receive this error message if you have full version MS Access loaded on your profile." & vbCrLf & vbCrLf & "Opening the BRT in exclusive mode prevents other users from logging in." & vbCrLf & vbCrLf & "This instance will now shut down."
               DoCmd.Quit acQuitSaveNone
            Else
            MsgBox "You can not run this application OUTSIDE of the runtime environment." & vbCrLf & vbCrLf & "You are likely to receive this error message if you have full version MS Access loaded on your profile." & vbCrLf & vbCrLf & "Opening the BRT in exclusive mode prevents other users from logging in." & vbCrLf & vbCrLf & "You are a system developer, you may open in Exclusive Mode"
            End If
    End If

Open in new window


You will note it is also doing a test against strUser (current login), so if I am in it I can open in Exclusive mode should I need to, although I only ever open the live version in runtime.

I hope this helps.

Kev
0
 
LVL 5

Expert Comment

by:Kev
ID: 37551125
I just noticed this post is well over a year old.... pmsl
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question