Connecting Tech Pros Worldwide Help | Site Map

Subtract certian number of weeks from a date field?

Mo
Guest
 
Posts: n/a
#1: Nov 13 '05
Is it possible to subtract a number of weeks from a specific date field in
one of my queries?

e.g: CalculatedDateField: MyDatefield - 10 wks

Any help much appreciated.


Rick Brandt
Guest
 
Posts: n/a
#2: Nov 13 '05

re: Subtract certian number of weeks from a date field?


"Mo" <m.a.joomun@nospam.qmul.ac.uk> wrote in message
news:c97ep3$qe6$1@beta.qmul.ac.uk...[color=blue]
> Is it possible to subtract a number of weeks from a specific date field[/color]
in[color=blue]
> one of my queries?
>
> e.g: CalculatedDateField: MyDatefield - 10 wks[/color]

The following subtracts 23 weeks from today's date.

DateAdd("ww", -23, Date())

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


Allen Browne
Guest
 
Posts: n/a
#3: Nov 13 '05

re: Subtract certian number of weeks from a date field?


Try:
CalculatedDateField: DateAdd("ww", -10, [MyDateField])

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Mo" <m.a.joomun@nospam.qmul.ac.uk> wrote in message
news:c97ep3$qe6$1@beta.qmul.ac.uk...[color=blue]
> Is it possible to subtract a number of weeks from a specific date field in
> one of my queries?
>
> e.g: CalculatedDateField: MyDatefield - 10 wks
>
> Any help much appreciated.[/color]


Mo
Guest
 
Posts: n/a
#4: Nov 13 '05

re: Subtract certian number of weeks from a date field?


Doh!! Of course!

Thanks both of you

Mo


Closed Thread