Thread: Automatic date
View Single Post
  #3  
Old April 29th, 2010, 06:51 AM posted to microsoft.public.access.gettingstarted
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Automatic date

On Wed, 28 Apr 2010 13:37:01 -0700, janelgirl
wrote:

I need to add a field that is the current date to a table, but the date needs
to be updated automatically to always equal the current date. In Excel, this
was easily done with the "TODAY" function, but this isn't working in Access.
When I use "Date()", it returns the date that the record was created, but
does not update to the current date as time passes. In other words, if it
was created on 4/22/10, when I open the table on 4/28/10, I need that field
to read 4/28/10, even though it was created on an earlier date. I hope this
makes sense. Any help is greatly appreciated! Thanks!


A table should contain only real, static data. You can display today's date in
a Query, or in the control source of a textbox on a Form or Report, using the
Date() function. You cannot do so (and should not do so, because no such
field should exist!) in a Table.
--

John W. Vinson [MVP]