Results 1 to 4 of 4
  1. #1
    jlindquist23 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jan 2019
    Posts
    46

    Set a form to automatically open

    My database usually stays open all day. Inspection_Frm


    At 7:00 AM, M-F, I'd like a form to open for the operator to perform tasks on the form (DailyMaintenance).
    What is the best way to accomplish this?
    Thanks for your help!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    In the inspection form ,turn on the timer interval property,
    set the interval to 5000. (5 seconds)
    in the ON TIMER event, check the time:
    Code:
    sub Form_Timer()
    Dim vTime as date
    vTime = time()
    
    if vTime = #07:00 am# then docmd.openform "fDailyMaintenance"
    end sub

  3. #3
    jlindquist23 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jan 2019
    Posts
    46

    Cool That works!

    Wow! That works!
    Thank you!!

  4. #4
    jlindquist23 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jan 2019
    Posts
    46
    What code is required to open it to a new record?

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

Similar Threads

  1. Replies: 9
    Last Post: 05-23-2017, 11:56 AM
  2. Replies: 1
    Last Post: 12-03-2014, 06:41 PM
  3. Automatically open Make Table from Query
    By jabrjo in forum Queries
    Replies: 6
    Last Post: 11-20-2014, 03:30 PM
  4. automatically open cbo
    By Jerry in forum Programming
    Replies: 8
    Last Post: 03-07-2011, 03:19 PM
  5. Have database open automatically
    By Norman Masson in forum Access
    Replies: 6
    Last Post: 01-08-2008, 07:41 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