Results 1 to 2 of 2
  1. #1
    AmanKaur123 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2017
    Posts
    47

    VBA code to identify location from where the database is opened

    Hi All



    I want to write a piece of code that will tell me location of the database when its opened.

    I have created a database which users try to open from different locations so I basically need to know the location from where the database is opened.

    Any help will be much appreciated.

    Thanks

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,429
    use

    currentdb.name

    to provide path and name

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Button code for IP location
    By dniezby in forum Programming
    Replies: 3
    Last Post: 03-20-2017, 04:26 PM
  2. Replies: 3
    Last Post: 10-16-2014, 08:49 AM
  3. Code for closing all opened forms
    By gstylianou in forum Access
    Replies: 9
    Last Post: 06-30-2014, 01:35 AM
  4. Replies: 11
    Last Post: 07-24-2013, 11:49 AM
  5. Code needed when Database is Opened
    By Access_Headaches in forum Access
    Replies: 7
    Last Post: 08-13-2010, 01:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums