Calculate number of weeks

M

Matt

I use Access 2003. I have start and finish dates, and want to calculate the
number of weeks in a separate text box. I have tried the following:

=[Hire Ends]-[Hire Start]/7

This does not work.

Any help??

Thanks
Matt.
 
A

Allen Browne

If you want the subtraction to occur before the division, you need brackets:
= ([Hire Ends] - [Hire Start]) / 7
 
P

Pieter Wijnen

Also Datediff is better for this sort of thing

Pieter

Allen Browne said:
If you want the subtraction to occur before the division, you need
brackets:
= ([Hire Ends] - [Hire Start]) / 7

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

Matt said:
I use Access 2003. I have start and finish dates, and want to calculate
the number of weeks in a separate text box. I have tried the following:

=[Hire Ends]-[Hire Start]/7

This does not work.

Any help??

Thanks
Matt.
 
J

John Vinson

I use Access 2003. I have start and finish dates, and want to calculate the
number of weeks in a separate text box. I have tried the following:

=[Hire Ends]-[Hire Start]/7

Try

DateDiff("ww", [Hire Start], [Hire Ends])

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top