Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Field name is "date" now I can't use "Date()" Function 1

Status
Not open for further replies.

dontay

Programmer
Jan 22, 2003
49
US
Hi all,
In one of my first apps I named the date field "date".(I will never do that again).
Now when I try to use the "Date()" Function to update another text box, it adds what ever date is in the date field and not the current date.
How can I use the "Date()" function to produce the current date?
Thanks ahead of time.
Don
 
How are ya dontay . . . .

If you want the current date, I don't understand why you don't use the well known Now() function?

TheAceMan [wiggle]

 
Now() will give you a timestamp but you can limit that to just the data using properties.

 
Hay BNPMike . . . How are ya!

The Integer portion of Now() is the date part. The Decimal portion is the time part. So Int(Now()) returns the date only!

TheAceMan [wiggle]

 
Thanks All,
Int(Now()) solves the problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top