Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2014
    Posts
    9

    Making a form open with data from a table based on a date and time in the table.


    Does anyone know how to make a form open with data from a table based on a date and time in the/a table?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Use filter criteria.

    How do you open the form? Manually from navigation pane? Or with code behind another form?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Join Date
    Sep 2014
    Posts
    9
    I have a macro that opens a form based on date and time pulled from a query. The macro works great but I am looking to have the macro run every 15 min without input from the user. So when the Main Form opens the macro runs every 15 min.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I know a timer can be programmed in VBA behind a form with Timer event, don't know about macro. I never use macros.

    But the form is already open so unless you also close it every 15 minutes, how can you open it? Why do you need to do this?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Join Date
    Sep 2014
    Posts
    9
    One form hold a customer database. The rep sets call back during the day. I want the system to pull up call backs as people forget. It opens a new form the list out any call back set for that day up to that time. as for VBA this works sometimes, but will not work for my needs.
    Private Sub Form_Activate()
    'enter commands here
    Application.OnTime Now + TimeValue("00:15:00"), "pull recalls"


    End Sub

  6. #6
    PhilB is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    2
    If I understand, you would like to open a form every 15mn. And In this form you display some information for people. You have in the form property the possibility to activate an event on the line OnTimer. Just after this line you enter the timer interval. (I have a french database to explain you the property that you must used). When you enter an Timer Interval (<> 0) for exemple 15 you define the time period to activate the event function that you enter on OnTimer. But this timer is placed on your main form. When your main form is active the timer is started and when the time is elapsed the event function run. In this function you can open a other form to display what you want. You have also the possibilty to change dynamically the Timer Interval

  7. #7
    Join Date
    Sep 2014
    Posts
    9
    I would like a macro to run every 15 min. after opening the main form.

  8. #8
    Join Date
    Sep 2014
    Posts
    9
    Found the fix, by talking with you all.
    I have a main form that is used for customer calls and call backs.
    While the rep is working in this form I needed a 2nd form to come up with call backs so the rep can work that information. To achieve this I found
    1) Open the Main form in design view
    2) Open the property sheet
    3) Select the event tab
    4) Scroll down to “On Timer”
    5) Use the drop down arrow to select the Macro you with to run
    6) Tab down to the “Timer Interval” spot.
    7) Timing is set at 1000 = roughly 10 sec. I set this spot at 900000 which equals 13 min
    The macro will run every 13 min.

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

Similar Threads

  1. Replies: 2
    Last Post: 07-07-2014, 09:19 AM
  2. Replies: 2
    Last Post: 10-07-2013, 11:01 AM
  3. Replies: 6
    Last Post: 05-10-2012, 08:20 PM
  4. Closing a Form Based on Table Data
    By perihelia in forum Programming
    Replies: 2
    Last Post: 03-05-2012, 05:33 PM
  5. Replies: 0
    Last Post: 07-27-2009, 07:51 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