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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Action Button Question



 
 
Thread Tools Display Modes
  #1  
Old November 21st, 2009, 02:51 AM posted to microsoft.public.access.forms
Timothy Millar[_2_]
external usenet poster
 
Posts: 1
Default Action Button Question

I have a button that is unbound. I also have a text box. I want to program
the button that when clicked it will place the current date and time at the
end of all text (if applicable) in the text box.

Let me thank you a head of time
  #2  
Old November 21st, 2009, 03:19 AM posted to microsoft.public.access.forms
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default Action Button Question

Put code like this on the click event of the button.
Me.txt1 = Me.txt1 & " " & Now()

note: replace txt1 with your own object name.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


"Timothy Millar" Tim wrote in message
...
I have a button that is unbound. I also have a text box. I want to
program
the button that when clicked it will place the current date and time at
the
end of all text (if applicable) in the text box.

Let me thank you a head of time



 




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 06:27 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.