number of days in month

B

Bill Neilsen

I have a monthly activities report, and as part of the report I need to use
the number of days in the month as part of a calculation.
Can anyone tell me how to have a text box show the number of days in the
current month?
Thanks in advance
 
B

Bill Neilsen

The original suggestion works well, but after thinking about it a bit more I
need something a little different.
The query behind the report has a Date Field [DateCompleted] and another
field [MonthNumber: Month([DateCompleted])] This second field simply gives me
the month number of the year.
When I use this second field [MonthNumber: Month([GSECompleted])] in my
report I need a text box to tell me how many days in the month indicated. Or
even just to tell me how many days in the month of [DateCompleted] field.
Is this possible?
 
R

Rick Brandt

Bill said:
The original suggestion works well, but after thinking about it a bit
more I need something a little different.
The query behind the report has a Date Field [DateCompleted] and
another field [MonthNumber: Month([DateCompleted])] This second field
simply gives me the month number of the year.
When I use this second field [MonthNumber: Month([GSECompleted])] in
my report I need a text box to tell me how many days in the month
indicated. Or even just to tell me how many days in the month of
[DateCompleted] field.
Is this possible?

Bill Neilsen said:
I have a monthly activities report, and as part of the report I need
to use the number of days in the month as part of a calculation.
Can anyone tell me how to have a text box show the number of days in
the current month?
Thanks in advance

Day(DateSerial(Year([DateCompleted]), Month([DateCompleted])+1,0)
 
B

Bill Neilsen

Thanks Rick, I see the difference in the statements. I should have guessed it
myself.
It work well.

Rick Brandt said:
Bill said:
The original suggestion works well, but after thinking about it a bit
more I need something a little different.
The query behind the report has a Date Field [DateCompleted] and
another field [MonthNumber: Month([DateCompleted])] This second field
simply gives me the month number of the year.
When I use this second field [MonthNumber: Month([GSECompleted])] in
my report I need a text box to tell me how many days in the month
indicated. Or even just to tell me how many days in the month of
[DateCompleted] field.
Is this possible?

Bill Neilsen said:
I have a monthly activities report, and as part of the report I need
to use the number of days in the month as part of a calculation.
Can anyone tell me how to have a text box show the number of days in
the current month?
Thanks in advance

Day(DateSerial(Year([DateCompleted]), Month([DateCompleted])+1,0)
 

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