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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Date Function
Hi
can someone explain which date function i should use if i want the system date to appear in a textbox as i enter it Cheers |
#2
|
|||
|
|||
Date Function
Reno try the On Enter event or Got Focus event of the text box
Private Sub myTextBox_Enter() Me.myTextBox = Date End Sub -- Reggie ---------- "reno.04" wrote in message ... Hi can someone explain which date function i should use if i want the system date to appear in a textbox as i enter it Cheers |
#3
|
|||
|
|||
Date Function
hey Reggie
that didnt work and could you explain (cause help doesnt ,atleast to my understanding) what the interval, means in the following function DateAdd («interval», «number», «date») What i'm trying to do is write a query that will tell me which clients certifications are due for renew say after 3 yrs Cheers Reno Ps Thank you for all your help "Reggie" wrote in message ... Reno try the On Enter event or Got Focus event of the text box Private Sub myTextBox_Enter() Me.myTextBox = Date End Sub -- Reggie ---------- "reno.04" wrote in message ... Hi can someone explain which date function i should use if i want the system date to appear in a textbox as i enter it Cheers |
#4
|
|||
|
|||
Date Function
Interval is the interval of time you want to add for example year, month,
day, minute, etc. and number is the number of intervals so for example should you use NewDate = DateAdd( "yyyy", 3, Date()) would give you the date 3 years from todays date. NewDate = DateAdd( "m", 3, Date()) would give you the date 3 months from todays date. NewDate = DateAdd( "h", 4, Now()) would give you the time 4 hours from now. Hope this helps -- Reggie ---------- "reno.04" wrote in message ... hey Reggie that didnt work and could you explain (cause help doesnt ,atleast to my understanding) what the interval, means in the following function DateAdd («interval», «number», «date») What i'm trying to do is write a query that will tell me which clients certifications are due for renew say after 3 yrs Cheers Reno Ps Thank you for all your help "Reggie" wrote in message ... Reno try the On Enter event or Got Focus event of the text box Private Sub myTextBox_Enter() Me.myTextBox = Date End Sub -- Reggie ---------- "reno.04" wrote in message ... Hi can someone explain which date function i should use if i want the system date to appear in a textbox as i enter it Cheers |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
date time =now() function | Brenda | Worksheet Functions | 7 | May 10th, 2004 12:18 AM |
Does date fall between two ranges? | MR | Worksheet Functions | 4 | January 14th, 2004 04:08 PM |
Getting a month from a date NOT using month() function! HELP! | Pedro Sendas Pereira | Worksheet Functions | 7 | October 23rd, 2003 02:03 AM |