Results 1 to 3 of 3
  1. #1
    Mister-B is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    31

    Close Access

    I am having a problem that many others have had. I have a split database used by about 10 people at the same time. I sometimes need to do maintainence on the backend but can't because I don't have exclusive acces to the backend. One of the solutions I found suggested was to have a hidden form on start up with a checkbox. The form's timer event checks the checkbox every 5 minutes to see if it is checked. If it has been checked by me the database closes on all the other machines. I have the hidden form, have set the timer and am looking for code for the timer event.



    I would like a message box to be displayed with a message that the database will close in two minutes (no problem there). Here is the problem: How can I get access to count the two minutes in the background and close access when they have elapsed. Access should close irrespective of the fact if the OK button on the message box was clicked or not.

  2. #2
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    There is a long discussion and some further links to demo's in this thread
    https://www.access-programmers.co.uk...-moment.312568
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    Mister-B is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    31
    Couldn't get my head around many of the suggestions I have found on the net.l This one did the trick though:

    https://docs.microsoft.com/en-us/off...ation-remotely

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

Similar Threads

  1. Close access
    By netguy in forum Programming
    Replies: 3
    Last Post: 09-30-2014, 08:14 AM
  2. Can Access be programmed to close itself?
    By dunc723 in forum Programming
    Replies: 2
    Last Post: 05-27-2014, 12:11 PM
  3. Replies: 4
    Last Post: 01-31-2014, 11:47 AM
  4. Use Switchboard to close db AND Access
    By HeadGasket in forum Forms
    Replies: 1
    Last Post: 02-01-2012, 07:08 PM
  5. Replies: 2
    Last Post: 06-20-2011, 03:10 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