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  

Date Function



 
 
Thread Tools Display Modes
  #1  
Old July 3rd, 2004, 10:02 AM
reno.04
external usenet poster
 
Posts: n/a
Default 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  
Old July 3rd, 2004, 10:21 AM
Reggie
external usenet poster
 
Posts: n/a
Default 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  
Old July 4th, 2004, 11:06 PM
reno.04
external usenet poster
 
Posts: n/a
Default 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  
Old July 5th, 2004, 12:39 AM
Reggie
external usenet poster
 
Posts: n/a
Default 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

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

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


All times are GMT +1. The time now is 02:32 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.