Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying Time
Message
De
31/08/2001 10:25:31
 
 
À
31/08/2001 10:09:34
Information générale
Forum:
Microsoft Office
Catégorie:
Access
Titre:
Divers
Thread ID:
00551386
Message ID:
00551403
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>How can I show the current time in a text box on a form. I have set the textbox.value = time(), but it is stagnant. I want to show the correct RUNNING time not just the time the form was opened. TIA

You can use a Timer for this. Every access form has a built-in timer where you can place code on the Timer event and set the TimerInterval property to anything other than 0:
Private Sub Form_Load()
    Me.TimerInterval = 1000
End Sub

Private Sub Form_Timer()
    Me.Text1 = Time()
End Sub
This should set the textbox value about every second.
HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform