Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Tough one; determine if an Access file is open

If the MS Access file you are trying to test is *.mdb/*mde (not *adp/*.ade),
then, you can simply check if there is a [databasefilename].ldb file exists
in the same folder as the *.mdb file.

Note, here is a small catch: if the *.mdb was previously opened and did not
get properly closed (for example, the computer crashed), then the *.ldb may
be left there.

"XP" wrote in message
...
I am using Office 2003 on Windows XP.

I need a VBA function to determine FROM EXCEL if a specific MS-Access file
is currently open.

Can someone please post example code that would determine this; ideally a
function that would return true or false.

Thanks much in advance.



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
Determine if an excel file is already open [email protected] Excel Programming 2 October 13th 05 03:44 PM
Tough Excel/Access/VBA Problem! Please Help!!! levileonards[_2_] Excel Programming 1 September 13th 05 12:32 AM
Tough Excel/Access/Windows Problem, need Help!!! levileonards Excel Programming 1 September 6th 05 09:36 PM
tough question--determine smallest time from range with exceptions xadnora Excel Programming 3 March 1st 05 08:53 PM


All times are GMT +1. The time now is 06:02 PM.

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"