Results 1 to 8 of 8
  1. #1
    RichardAnderson is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    74

    Is This Possible? Auto Refresh an Opened Report every "X" seconds


    First let me warn everyone I am a newbie. I barely know Access and I know nothing about VB.

    I am working on making a DB to use as a production schedule. tblBuilds holds a list of builds. I have several reports to show this list with different filters. One such report is rptBuildsToday. This report will be open on the production warehouse computer and displayed on a huge screen all day every day. Is it possible to make it so this report auto runs again every so often? When new builds are added to tblBuilds, or if a record on the table has its date changed to "today", It would be nice to have the report reflect this change within a certain time without having to manually refresh the report. The people looking at the screen will be doing so from their work benches and nowhere near the computer that has it opened.

    If this is indeed possible, could the proposed method also work on a report or form inside the tab of a navigation control?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Reports are not really intended for screen display of data just as forms are not intended for printing data. Both can be made to work like the other but results not always as nice. Report would have to rerun (closed and reopened) to requery its RecordSource and re-render sections. Forms, however, will automatically refresh according to frequency set by the database.
    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
    RichardAnderson is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    74
    Quote Originally Posted by June7 View Post
    Reports are not really intended for screen display of data just as forms are not intended for printing data. Both can be made to work like the other but results not always as nice. Report would have to rerun (closed and reopened) to requery its RecordSource and re-render sections. Forms, however, will automatically refresh according to frequency set by the database.
    OK great ... I will have to learn how to make a form read only for that active directory security group then.

    Would you mind showing me how to set a form to auto refresh like you mentioned??

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Refresh is not a form or project setting. It is application setting: File > Options > Advanced > Advanced > Refresh Interval

    I've never changed the refresh rate from the default setting.

    Set a form as not editable with properties set to No:
    AllowEdits
    AllowAdditions
    AllowDeletions
    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
    RichardAnderson is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    74
    First I want to thank you for your replies. It means a lot.

    Quote Originally Posted by June7 View Post
    Refresh is not a form or project setting. It is application setting: File > Options > Advanced > Advanced > Refresh Interval
    I did this but it is not refreshing...

    I made a multi items form called frmBuildsAll based off of tblBuilds. I had both open and when I made a change to tblBuilds I switched to frmBuildsAll and waited. Nothing changed.

    Quote Originally Posted by June7 View Post
    Set a form as not editable with properties set to No:
    AllowEdits
    AllowAdditions
    AllowDeletions
    I will note this.. Thank you...

  6. #6
    RichardAnderson is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    74
    I got it!....

    in the Form properties I had to make 2 changes...

    1- Set Timer Interval to 10000 for 10 seconds
    2- Put me.Requery in the OnTimer event procedure.

    YAY! you put me on the right track and helped me know what to search for.
    Thank You

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Interesting, I've never used timer event for any reason and certainly not for refresh. I see my forms refresh according to the application refresh settings.
    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.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Quote Originally Posted by RichardAnderson View Post
    I got it!....

    in the Form properties I had to make 2 changes...

    1- Set Timer Interval to 10000 for 10 seconds
    2- Put me.Requery in the OnTimer event procedure.

    YAY! you put me on the right track and helped me know what to search for.
    Thank You
    Be advised that the default for ac2010 is probably 60 seconds (at least my ac2010 is) and the Timer event can cause some strange behavior on occasion and sucks up some additional CPU cycles.. The path in ac2010 is Options>Client Settings>Advanced
    If this thread is Solved you can use the Thread Tools at the top of the thread to mark it solved.

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

Similar Threads

  1. "Refresh All" Command
    By rkalapura in forum Programming
    Replies: 4
    Last Post: 02-11-2021, 08:31 AM
  2. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  3. Replies: 1
    Last Post: 08-23-2012, 08:32 AM
  4. Replies: 2
    Last Post: 02-21-2012, 01:35 PM
  5. Replies: 0
    Last Post: 10-13-2009, 11:54 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