Command Button to add current date into text box

leepem

New member
Local time
Today, 21:03
Joined
Jul 20, 2006
Messages
5
I need to create a command button that simply, when pressed places todays Date into a text box, the text box should have no value in untill the command button is pressed.

Thanks in advance for any help i receive

Lee Pemberton
 
Put this behind the OnClick event of your button

Code:
Me.txtMyDate = Date

txtMyDate being the name of you text box control.
 
thanks, have sussed it out now!!!
 
Hi. This is really old Thread but i need your help.
1- I copied your code and changed textbox name etc. but I have an error :
Microsoft Access cannot find the object ´Me´
2- Can we do that with macro ? because im already using On Click option for Macro. ??
3- Important one : i want to see date till my next update
(im using 2007 2010 access)
 
Last edited:

Users who are viewing this thread

Back
Top Bottom