PC Review


Reply
Thread Tools Rate Thread

Determine the drive letter of BE database...

 
 
ambushsinger
Guest
Posts: n/a
 
      27th May 2010
I have an mde that accesses a back end mdb. Using VBA...how can I determine
the network drive letter of that back end database?
 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      30th May 2010
"PieterLinden via AccessMonster.com" <u49887@uwe> wrote in message
news:a8a63debe2090@uwe...
> ambushsinger wrote:
>>I have an mde that accesses a back end mdb. Using VBA...how can I
>>determine
>>the network drive letter of that back end database?

>
> depends on how it's mapped.... you should be able to take just the
> leftmost
> character of the Connect property of an attached tabledef
>
> Left$(DBEngine(0)(0).Tabledefs("tdfAttached").Connect,1)


It won't be the 1st character of the Connect property, because for an Access
back-end that will begin with ";DATABASE=". Use

Mid$(DBEngine(0)(0).Tabledefs("tdfAttached").Connect, 11, 1)

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Determine the drive letter of BE database... DrGUI Microsoft Access VBA Modules 0 27th May 2010 09:03 PM
Determine what current drive letter is? johnb41 Microsoft VB .NET 3 24th Oct 2006 04:39 PM
how to correctly determine drive letter of second partition of usb stick neilmcguigan@gmail.com Windows XP Hardware 0 27th Jul 2006 11:16 PM
Windows API to Determine if File is Local/Convert Path to Drive Letter Johnny Microsoft Excel Programming 0 10th Mar 2006 01:20 PM
Pre-determine the next available drive letter in Windows XP Jude Wong Windows XP General 0 30th Sep 2005 05:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:46 PM.