Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 13th, 2005, 12:09 AM
Mo
Guest
 
Posts: n/a
Default Subtract certian number of weeks from a date field?

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.


  #2  
Old November 13th, 2005, 12:10 AM
Rick Brandt
Guest
 
Posts: n/a
Default 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


  #3  
Old November 13th, 2005, 12:10 AM
Allen Browne
Guest
 
Posts: n/a
Default 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]


  #4  
Old November 13th, 2005, 12:10 AM
Mo
Guest
 
Posts: n/a
Default Re: Subtract certian number of weeks from a date field?

Doh!! Of course!

Thanks both of you

Mo


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles