By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,224 Members | 1,037 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,224 IT Pros & Developers. It's quick & easy.

Subtract certian number of weeks from a date field?

P: n/a
Mo
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.
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Mo" <m.********@nospam.qmul.ac.uk> wrote in message
news:c9**********@beta.qmul.ac.uk...
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


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
Nov 13 '05 #2

P: n/a
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.********@nospam.qmul.ac.uk> wrote in message
news:c9**********@beta.qmul.ac.uk...
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.

Nov 13 '05 #3

P: n/a
Mo
Doh!! Of course!

Thanks both of you

Mo
Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.