PC Review


Reply
Thread Tools Rate Thread

Database directory via VBA

 
 
Stu
Guest
Posts: n/a
 
      6th Dec 2007
Can someone provide a line or two of VBA code that shows the full directory
path of the current database? (Purpose: I want to disable the db if the
user isn't running from a certain directory.)
 
Reply With Quote
 
 
 
 
M.
Guest
Posts: n/a
 
      6th Dec 2007
Application.CurrentDb.Name (string; includes both path and database_name.mdb)

"Stu" wrote:

> Can someone provide a line or two of VBA code that shows the full directory
> path of the current database? (Purpose: I want to disable the db if the
> user isn't running from a certain directory.)

 
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
New directory being used after database closed KidSensation Microsoft Access 4 26th Jun 2007 06:37 PM
Database Files Directory Jeffry Montalvo Microsoft Access Form Coding 7 22nd Feb 2007 01:46 PM
how do I get the database directory name from a server? =?Utf-8?B?cnVzczcwNDY=?= Microsoft Access Form Coding 2 25th Feb 2005 02:49 AM
Access database in app directory Dinko Deranja Microsoft ADO .NET 2 14th Apr 2004 01:14 PM
Update to a different database in a different directory Arvin Villodres Microsoft Access Queries 0 29th Oct 2003 12:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:37 AM.