counting weeks between 2 dates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I'm newbie at access, so can I ask some questions here?
I'm having trouble with how to count weeks between 2 dates and second
question is those 2 dates one of them coming from typing, but the other date
needs to generated by subtract the typed date by 9 months. Any suggestions
how am I suppose to do?
thanks before

dwin
 
Dwin

NumWeeks = DateDiff("ww", [YourTypedDate], DateAdd("m", -9,
[YourTypedDate]))

Regards/JK
 
sorry I'm a total newbie, but where should I put that code? Thanks and sorry

JK said:
Dwin

NumWeeks = DateDiff("ww", [YourTypedDate], DateAdd("m", -9,
[YourTypedDate]))

Regards/JK


dwin said:
Hi, I'm newbie at access, so can I ask some questions here?
I'm having trouble with how to count weeks between 2 dates and second
question is those 2 dates one of them coming from typing, but the other
date
needs to generated by subtract the typed date by 9 months. Any suggestions
how am I suppose to do?
thanks before

dwin
 
Dwin

It occurred to me after I posted.
You don't need any code - the result will *always* be 39 weeks. Your
question, as it stands, is like asking how many days elapse between a date
and 2 days earlier.

Perhaps you can rephrase your question.

Regards/JK

dwin said:
sorry I'm a total newbie, but where should I put that code? Thanks and
sorry

JK said:
Dwin

NumWeeks = DateDiff("ww", [YourTypedDate], DateAdd("m", -9,
[YourTypedDate]))

Regards/JK


dwin said:
Hi, I'm newbie at access, so can I ask some questions here?
I'm having trouble with how to count weeks between 2 dates and second
question is those 2 dates one of them coming from typing, but the other
date
needs to generated by subtract the typed date by 9 months. Any
suggestions
how am I suppose to do?
thanks before

dwin
 

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

Similar Threads

Excel Date Count 2
Running Count By Week 6
Queries & Fiscal weeks 7
Creating report with date counts 1
Count number of records by date 2
Count By week 1
Counts 1
Get date for start of week 3

Back
Top