Solved

read access without locking dbase

Posted on 2014-12-10
4
113 Views
Last Modified: 2015-01-07
i havw excel a vba macro that reads records in an access database table on a network drive.  I only have read only access to the network, however if my excel vba macro is reading the access table, and the owner of that access table is trying to read or write to his tables, he is locked out because i'm accessing it. So, even though i only have read only access to his tables, i still lock him out.  is there a way i around this so that i can read his tables at anytime without locking him out?  i tried reading the records from an access query instead of directly from his tables, but this did not help.

im looking for a vba solution.  thanks.
0
Comment
Question by:jtencha
[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
4 Comments
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 40493526
You could start by posting the code you are using... ;)
0
 
LVL 16

Accepted Solution

by:
Jerry Paladino earned 500 total points
ID: 40493562
Couple of suggestions depending on how you are attached to the Access db.

If you are using a QueryTable (Data / Get External Data / From Access...) then open the Connection Properties dialog and change the Mode value in the connection string from "Share Deny Write" to "Read".   That may solve the situation.   See screen capture below.

If you are making the connection to Access with ADO inside VBA then again change the Mode setting.   Before you make the connection add...   cn.Mode = adModeRead         (cn being whatever your connection variable is)

Microsoft reference to this property...

Mode Property (ADO)
http://msdn.microsoft.com/en-us/library/windows/desktop/ms676693%28v=vs.85%29.aspx 

ConnectModeEnum
http://msdn.microsoft.com/en-us/library/windows/desktop/ms675792(v=vs.85).aspx
Connection Properties Dialog
0
 
LVL 47

Expert Comment

by:Martin Liss
ID: 40535235
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

726 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