Results 1 to 3 of 3
  1. #1
    twgonder is offline Expert
    Windows 10 Access 2021
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658

    How to tell if an .accdb file is running


    I need to add some code to a form that only runs if the starting file was an .accdb.
    In other words, code that developers need for debugging, but that shouldn't run in others like an .accde.

    I can't find, in searches, how to tell. Is there some secret property or variable to use?

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Maybe something like this:
    Code:
    If Right(CurrentProject.FullName,5)="accdb" Then
    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    twgonder is offline Expert
    Windows 10 Access 2021
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658
    @Gicu post #2 Thank you, that was exactly the needle in the haystack I was looking for.

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

Similar Threads

  1. Question about running accdr/accdb files
    By CostasD in forum Access
    Replies: 4
    Last Post: 12-16-2022, 03:50 AM
  2. Replies: 15
    Last Post: 02-13-2019, 03:06 PM
  3. Can an accdb file be moved from one computer to another?
    By fred615@gmail.com in forum Access
    Replies: 8
    Last Post: 08-07-2018, 02:22 PM
  4. Replies: 2
    Last Post: 05-01-2014, 01:31 PM
  5. Accdb file differences running xp or Win7
    By 123seven in forum Access
    Replies: 1
    Last Post: 04-24-2011, 10:45 AM

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