A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Time in Text Field



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2009, 07:56 PM posted to microsoft.public.access
JOE POLLOCK
external usenet poster
 
Posts: 22
Default Time in Text Field

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?
--
JOE
  #2  
Old May 6th, 2009, 08:24 PM posted to microsoft.public.access
John Spencer MVP
external usenet poster
 
Posts: 533
Default Time in Text Field

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

JOE POLLOCK wrote:
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?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.