Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 3rd, 2006, 01:42 PM
Authorized User
 
Join Date: Dec 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Open external DB in MS Access VB problem

Hi there,

I would like to ask whether it is possible to bypass the lock on an external DB that is being used by another person. I am trying to achieve this through GUI using VB.

I am asking this because I can open that DB manually by double clicking on it (it being locked still, with the .ldb file present in the same dir. as the DB), but when the VB code tries I get the follwing error message:

Runtime Error '3356':
You attempted to open a database that is already opened exclusively by user <name> on machine <name>. Try again when the database is available.


Any help or advice would be very much appreciated, Thank you for your help and time.

Kind regards

Derek

 
Old January 21st, 2006, 03:51 AM
Friend of Wrox
 
Join Date: Jul 2005
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You need to get the other users to open the database in "shared" mode. Then multiple users can open the database at the same time.

Boyd
"Hi Tech Coach"
Access Based Accounting/Business Solutions developer.
http://www.officeprogramming.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while Open Access DB in CD from VB project Andraw Beginning VB 6 4 August 14th, 2008 02:24 PM
Can I open access DB stored in CD from VB Andraw Pro VB Databases 1 August 14th, 2008 10:05 AM
MS ACCESS 2003 FRONTEND AND MS SQL SERVER 2005 DB mohankumar0709 SQL Server 2005 3 March 23rd, 2007 12:48 AM
problem using ADO to open form in MS Access apike VBScript 3 May 2nd, 2006 06:25 AM
script to open db to ms word? weedee Classic ASP Databases 5 June 2nd, 2005 04:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.