Results 1 to 2 of 2
  1. #1
    mike02 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    245

    If statement depending if a file exists

    Im working with my back end on dropbox. and the frontends on other peoples Pcs, Is there away to run an if statement stating,



    If (the back end Locked* file exists), then
    msgbox "Someone Is in the Database"

    Else

    docmd.OpenForm and so on.....(I know how to do this part

    The reasoning is that it creates conflicting copies when you edit data from more then one Front End. and it is a pain to copy the conflicting data into the actual DB.

    Thanks,

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,643
    I'm not sure about using dropbox, but you can use the Dir() function to see if a file exists.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. RunSavedImportExport file exists
    By BettyJordan in forum Access
    Replies: 1
    Last Post: 11-27-2012, 02:55 PM
  2. Replies: 2
    Last Post: 09-18-2011, 03:45 AM
  3. Checking beforehand whether a file exists
    By Ronald in forum Programming
    Replies: 2
    Last Post: 07-27-2011, 08:48 AM
  4. Replies: 7
    Last Post: 04-29-2011, 03:44 PM
  5. How to tell if a file exists and then delete it
    By orcinus in forum Programming
    Replies: 3
    Last Post: 05-17-2010, 05:15 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