Results 1 to 5 of 5

Thread: Application path

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    779

    Question Application path

    Is there a VBA equivalent to App.Path?

  2. #2
    Member
    Join Date
    May 2003
    Posts
    59
    Take a look at the Application.ActiveDocument object... it has properties that you might be able to use (Name, Path, etc)

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    779
    I'm using Microsoft Access 2000 and writing some code in my data entry form. I'm trying to open another database that will be in the same folder as the database i'm using but I don't want to use an exact path name because it will be different on each computer. So, i'm trying to figure out how to use a generic path name like VB6's App.Path. Application.ActiveDocument does not exist.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    779
    I figured it out. I used CurrendDb.Name and it gives me the current database path.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    779
    Now I have another question, I'm using the replace function in my vba code. It works fine in Access 2000 but when I try it in Access 97 it doesn't work. Does anybody have any suggestions?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width