I am quite new in VBA. I designed an application which register coming and leaving of employees. Iz works fine but would look so much better if one would actually see what time it is before registering.
[ol][li]Put a label on your form.[/li]
[li]Name it lblClock.[/li]
[li]Type [!]The current time is[/!] as its caption.[/li]
[li]Create the following procedure:[/li][/ol]
Code:
Private Sub Form_Timer()
Me.lblClock.Caption = "The current time is " & Format(Now(), "hh:mm:ss")
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.