Changing default date by time

  • Thread starter Thread starter hotplate
  • Start date Start date
Hi,



By definition, a default value is only used at the moment something is
created. So, something like

Date() + #05:00:00#


should do, in the relevant default property.


Now, if you mean that EXISTING values, already saved, have a midnight time
value, and, for those, you wish to use 5AM instead, someone can use an iif:


DateValue(myDateTime) + iif(0 =TimeValue(myDateTime) , #05:00:00#,
TimeValue(myDateTime) )



Hoping it may help,
Vanderghast, Access MVP
 
I think this should help, I just needed records recorded by 2nd shift
to all be on the date the shift starts. They will be adding new
records throughout the night.

Thanks
James
 
Back
Top