Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Forms restart automatically
Masih Ostad Novin 
     
3 years ago
Hi.
Is there a way that a form or subform can restart or refresh itself automatically without closing and loading it? I have a database that is always open and I want it to refresh itself everyday when the date changes. Can we do it by event programming?
Thanks.
Best, Masih
Kevin Robertson  @Reply  
           
3 years ago
You can set up a Timer() event to Refresh or Requery the form at a specific time of day.
Richard doesn't have a specific Timer() event (yet) but it is covered in the following videos:

Flashing Text
Reminder Popup
Reminder Popup Date
Juan C Rivera  @Reply  
            
3 years ago
Requery in Place
Try this and see if it helps.

V/r
Juan
Gregory Clancey  @Reply  
    
3 years ago
manually press F5?
Masih Ostad Novin OP  @Reply  
     
3 years ago
Is this code good enough?

Private Sub Form_Timer()

    If Date = Date Then
        Me.Requery
    End If


End Sub
Kevin Robertson  @Reply  
           
3 years ago
Here's I would do it.

First set the Timer Interval to 1000

In the Form_Timer() event:
If Hour(Time()) = 0 And Minute(Time()) = 0 And Second(Time()) = 0 Then
    Me.Requery
End If


Notes:
This will requery the form at midnight. Adjust to the time you want it to run.
Make sure it runs at a time when no-one is using the database.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/2/2026 8:20:25 AM. PLT: 1s