Can anyone tell me how to subtract one day from a quarterly submittal date
that exists in a table?
For instance, my quarterly submittal date is September 1, 2007.
How can i construct my query so that when i subtract one day, my result
becomes August 31, 2007?
Similarly, my result would be November 30, 2007 aftersubtracting one from
the December 1, 2007 submittal date.
Thanks in advance. Ruben
pietlinden@hotmail.com - 29 Jun 2007 22:33 GMT
On Jun 29, 4:10 pm, Jose Ruben Gonzalez-Baird
<JoseRubenGonzalezBa...@discussions.microsoft.com> wrote:
> Can anyone tell me how to subtract one day from a quarterly submittal date
> that exists in a table?
[quoted text clipped - 8 lines]
>
> Thanks in advance. Ruben
look up DateAdd in the help file...
DateAdd(interval, number, date)
eg
DateAdd("d",-1,StartDate)
Al Campagna - 29 Jun 2007 22:38 GMT
Jose,
Create a calculated field in your query with...
SubmitDateMinusOne : DateAdd("d", -1, SubmittalDate)

Signature
hth
Al Campagna
Access MVP 2007
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love, and you'll never work a day in your life."
> Can anyone tell me how to subtract one day from a quarterly submittal date
> that exists in a table?
[quoted text clipped - 8 lines]
>
> Thanks in advance. Ruben
Jose Ruben Gonzalez-Baird - 29 Jun 2007 22:50 GMT
THANKS!
> Jose,
> Create a calculated field in your query with...
[quoted text clipped - 12 lines]
> >
> > Thanks in advance. Ruben