Button for entering today's date and exact time

Pusher

BEOGRAD Put
Local time
Today, 12:51
Joined
May 25, 2011
Messages
230
Hello friends,
I have a text box for entering a date and 3 boxes for entering short time - I want to make 4 buttons for every box that I can press for today’s date and 3 for the entering the exact time - but I want to leave the manual entering of the time also.

Thanks a lot
 
For the button to enter the current date, use the following in the On Click event of your button;
Code:
Me.YourControlName = [URL="http://www.techonthenet.com/access/functions/date/date.php"]Date()[/URL]
and for the current time buttons use;
Code:
Me.YourControlName = [URL="http://www.techonthenet.com/access/functions/date/time.php"]Time()[/URL]
Your user can either click the button or enter the values manually.
 
Got it :) thanks
 
Last edited:

Users who are viewing this thread

Back
Top Bottom