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 
Label Cap in Continuous Form
James Hopkins 
     
2 years ago
Hey Richard and the Guys, I wonder if there's the a way the set a Label Caption in an Continuous Form. I am try to use a Label to Clock In/Out to display the Status of the Timesheet.
Sami Shamma  @Reply  
             
2 years ago
Sami Shamma  @Reply  
             
2 years ago
You can use :
Label name.Caption = 'new caption'
James Hopkins OP  @Reply  
     
2 years ago
Here's the Code I have in the Form:

DetailsPrivate Sub Form_Current()

    If IsNull(TimesheetID) Then Exit Sub
    
    If TimeClockStatusID = 292 Then
        LblClockStatus.Caption = "Clock-Out"
        LblClockStatus.ForeColor = vbRed
    ElseIf TimeClockStatusID = 293 Then
        LblClockStatus.Caption = "Clock-In"
        LblClockStatus.ForeColor = vbGreen
    End If
    
End Sub


DetailsPrivate Sub Form_Load()

    If IsNull(TimesheetID) Then Exit Sub
    
    If TimeClockStatusID = 292 Then
        LblClockStatus.Caption = "Clock-Out"
        LblClockStatus.ForeColor = vbRed
    ElseIf TimeClockStatusID = 293 Then
        LblClockStatus.Caption = "Clock-In"
        LblClockStatus.ForeColor = vbGreen
    End If
    
    RequeryFilter
    
    SetDefault
    
End Sub
Sami Shamma  @Reply  
             
2 years ago
Again Please be more specific. See Rule #2.

What is the question?
James Hopkins OP  @Reply  
     
2 years ago
I am try to make the Label display the Status of the Employee Clock Status, if they are 'Clocked-In or Clocked-Out'. Right now the Label only display one Status for all.
Kevin Robertson  @Reply  
          
2 years ago
Add a field to the Table and set the value of the Text Box based on whether the employee is clocking in or clocking out.

Or build a Query with a calculated field that sets the value.
Alex Hedley  @Reply  
           
2 years ago
Unchecked or tested but SO pointed to http://www.lebans.com/tooltip.htm

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/6/2026 4:38:10 AM. PLT: 1s