Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Employee Time Clock    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
TimeClockF
Mandy Duncan 
       
15 months ago
Can you make the TimeClockF wait 2 - 5 seconds before it closes?
Sami Shamma  @Reply  
             
15 months ago
use the Sleep function
Mandy Duncan OP  @Reply  
       
15 months ago
Works great!  Thank you
Mandy Duncan OP  @Reply  
       
15 months ago
My TimeClockF is not populating TimeOut.  I put a sleep timer on it before it closes so employees can see their in and out real quick but it won't show up.  It is, however, populating the TimeClock T.
Alex Hedley  @Reply  
           
15 months ago
Does it get refreshed/requeried?
Mandy Duncan OP  @Reply  
       
15 months ago
It does get refreshed.  See code below:

DetailsPrivate Sub ClockInBtn_Click()

    TimeIn = Now()
    Me.Refresh
    ClockInBtn.Enabled = False
    Sleep 500
    DoCmd.Close acForm, Me.Name, acSaveYes

End Sub

Private Sub ClockOutBtn_Click()

    TimeOut = Now()
    Me.Refresh
    Sleep 500
    DoCmd.Close acForm, Me.Name, acSaveYes
    
End Sub

Private Sub Form_Current()

    If Not IsNull(TimeIn) Then
        ClockInBtn.Enabled = False
    Else
        ClockInBtn.Enabled = True
    End If

End Sub
Mandy Duncan OP  @Reply  
       
15 months ago
If I click clock out with no clock in, then it populates.
Mandy Duncan OP  @Reply  
       
15 months ago
Disabling this part lets it populate but the form doesn't close.

DoCmd.Close acForm, Me.Name, acSaveYes
Kevin Robertson  @Reply  
          
15 months ago
Add a DoEvents

    TimeOut = Now()
    DoEvents
    Me.Refresh
    Sleep 500
    DoCmd.Close acForm, Me.Name, acSaveYes
Mandy Duncan OP  @Reply  
       
15 months ago
PERFECT!

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Employee Time Clock.
 

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: 4/30/2026 10:14:58 AM. PLT: 1s