Time in Text Field

  • Thread starter Thread starter JOE POLLOCK
  • Start date Start date
J

JOE POLLOCK

I need to have a bound text field in my form which, when that field is
clicked on the current time, in hours, minutes and seconds will appear. Any
suggestions?
 
Use the click event of the field and add VBA code that sets the value to Time.

Private Sub txtShowDetails_Click()
Me.txtShowDetails = Time()
End Sub


John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top