Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Dec 2001
    Location
    Nevada, USA
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've done several quick searches on this but have come up empty, so far.

    How do I get the current mdb path and filename in VBA? I want to display that info on several forms.

    Example: If the file I've opened is abc.mdb, I would like to display that name (and full path) on several forms.

    Thanks in advance.
    Carol W.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    You can use

    CurrentDb.Name

    or

    CurrentProject.FullName

    Both return the full path and filename of the active database.

  3. #3
    3 Star Lounger
    Join Date
    Dec 2001
    Location
    Nevada, USA
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, Hans.

    The currentproject.fullname works perfectly.
    Carol W.

Posting Permissions

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