Data function won't work...

105ben

Registered User.
Local time
Today, 08:57
Joined
Feb 2, 2013
Messages
42
Hello,

This date function should return the date and time from exactly one month ago, any ideas as to why it wont??

=DateAdd("mm",-1,Date())+Time()
 
Try;
Code:
=[URL="http://www.techonthenet.com/access/functions/date/dateadd.php"]DateAdd[/URL]("m",-1,[URL="http://www.techonthenet.com/access/functions/date/now.php"]Now()[/URL])

Use the Now() function (which includes a time component) rather than the Date() function (which doesn't).

Also month is "m" rather than "mm"
 
Last edited:
Thank you!
 

Users who are viewing this thread

Back
Top Bottom