PC Review


Reply
Thread Tools Rate Thread

Can Access 2007 discern which folder it lives in?

 
 
Brad
Guest
Posts: n/a
 
      7th May 2010
In order to simplify our "TEST to PROD" change control we would like to be
able to programmatically (in VBA) determine which folder an ACCDB lives in.

Is this possible?

Thanks,
Brad

 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      7th May 2010
"Brad" <(E-Mail Removed)> wrote in message
news:EE0F1C3B-CAF3-40D1-838A-(E-Mail Removed)...
> In order to simplify our "TEST to PROD" change control we would like to be
> able to programmatically (in VBA) determine which folder an ACCDB lives
> in.



CurrentProject.Path will return the folder in which the current database
resides.

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

(please reply to the newsgroup)

 
Reply With Quote
 
Brad
Guest
Posts: n/a
 
      7th May 2010
Dirk,

Thanks for the help!

Brad




"Dirk Goldgar" wrote:

> "Brad" <(E-Mail Removed)> wrote in message
> news:EE0F1C3B-CAF3-40D1-838A-(E-Mail Removed)...
> > In order to simplify our "TEST to PROD" change control we would like to be
> > able to programmatically (in VBA) determine which folder an ACCDB lives
> > in.

>
>
> CurrentProject.Path will return the folder in which the current database
> resides.
>
> --
> Dirk Goldgar, MS Access MVP
> Access tips: www.datagnostics.com/tips.html
>
> (please reply to the newsgroup)
>
> .
>

 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      7th May 2010
Brad <(E-Mail Removed)> wrote:

>In order to simplify our "TEST to PROD" change control we would like to be
>able to programmatically (in VBA) determine which folder an ACCDB lives in.


Dirk has already given you the answer.

I pretty much always distributed my FEs as MDEs/ACCDEs. So I put a
check in it that if the user is running an MDB and this is running
against the prod database the main menu form background colour is red.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/
Granite Fleet Manager http://www.granitefleet.com/
 
Reply With Quote
 
Brad
Guest
Posts: n/a
 
      7th May 2010
Tony,

Good idea - I plan to try this.

Thanks,

Brad


"Tony Toews [MVP]" wrote:

> Brad <(E-Mail Removed)> wrote:
>
> >In order to simplify our "TEST to PROD" change control we would like to be
> >able to programmatically (in VBA) determine which folder an ACCDB lives in.

>
> Dirk has already given you the answer.
>
> I pretty much always distributed my FEs as MDEs/ACCDEs. So I put a
> check in it that if the user is running an MDB and this is running
> against the prod database the main menu form background colour is red.
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
> Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
> For a convenient utility to keep your users FEs and other files
> updated see http://www.autofeupdater.com/
> Granite Fleet Manager http://www.granitefleet.com/
> .
>

 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      14th May 2010
Brad <(E-Mail Removed)> wrote:

>Good idea - I plan to try this.


You're welcome. I came up with that solution due to personal and
embarrassing experience. <sigh>

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/
Granite Fleet Manager http://www.granitefleet.com/
 
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
ms access 2007: link to a shared outlook 2007 contacts folder? mpb Microsoft Access External Data 0 25th Nov 2007 07:43 AM
Folder Object and Access 2007 CSIMechanicsville via AccessMonster.com Microsoft Access VBA Modules 1 4th Nov 2007 10:19 AM
2007 OL Can not access specified folder =?Utf-8?B?Z3p0N2Q4?= Microsoft Outlook Discussion 12 1st Jul 2006 02:11 AM
2007 OL Can not access specified folder =?Utf-8?B?Z3p0N2Q4?= Microsoft Outlook Discussion 0 30th Jun 2006 03:54 AM
how do I discern a IP # FireBrick Windows XP General 5 21st May 2004 03:24 PM


Features
 

Advertising
 

Newsgroups
 


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