Selecting date fields

G

Guest

Our fiscal year runs from April 1 to March 31, so it spans two calendar years.

My database records expenses along with the date (i.e., a field for expense
and a field for date).

I want to be able to sum all the expenses during our current fiscal year.
Summing is the easy part. What's the formula for selecting dates back to the
most recent April 1 (which might be this calendar year, or last year)?

Thanks in advance.

Jerry
 
G

Guest

Try this --
DatePart("yyyy",DateAdd("m",-3,[YourDateField]))

Then for criteria use a prompt like --
[Enter FY - 2003]
 
G

Guest

Anyone know of a way to do it that doesn't prompt you for an entry each time
the report is run?

Jerry

KARL DEWEY said:
Try this --
DatePart("yyyy",DateAdd("m",-3,[YourDateField]))

Then for criteria use a prompt like --
[Enter FY - 2003]

Cyberwolf said:
OUr fiscal year runs May - April. I need to create a report that spans

JWCrosby said:
Our fiscal year runs from April 1 to March 31, so it spans two calendar years.

My database records expenses along with the date (i.e., a field for expense
and a field for date).

I want to be able to sum all the expenses during our current fiscal year.
Summing is the easy part. What's the formula for selecting dates back to the
most recent April 1 (which might be this calendar year, or last year)?

Thanks in advance.

Jerry
 
G

Guest

Between
DateAdd("yyyy",-1,DateSerial(DatePart("yyyy",DateAdd("m",-3,Date())),3,31))+1
And DateSerial(DatePart("yyyy",DateAdd("m",-3,Date())),3,31)

JWCrosby said:
Anyone know of a way to do it that doesn't prompt you for an entry each time
the report is run?

Jerry

KARL DEWEY said:
Try this --
DatePart("yyyy",DateAdd("m",-3,[YourDateField]))

Then for criteria use a prompt like --
[Enter FY - 2003]

Cyberwolf said:
OUr fiscal year runs May - April. I need to create a report that spans

JWCrosby said:
Our fiscal year runs from April 1 to March 31, so it spans two calendar years.

My database records expenses along with the date (i.e., a field for expense
and a field for date).

I want to be able to sum all the expenses during our current fiscal year.
Summing is the easy part. What's the formula for selecting dates back to the
most recent April 1 (which might be this calendar year, or last year)?

Thanks in advance.

Jerry
 
G

Guest

Earlier post for prior FY. This for current FY
Between DateSerial(DatePart("yyyy",DateAdd("m",-3,Date())),4,1) And
DateSerial(DatePart("yyyy",DateAdd("m",+9,Date())),3,31)

JWCrosby said:
Anyone know of a way to do it that doesn't prompt you for an entry each time
the report is run?

Jerry

KARL DEWEY said:
Try this --
DatePart("yyyy",DateAdd("m",-3,[YourDateField]))

Then for criteria use a prompt like --
[Enter FY - 2003]

Cyberwolf said:
OUr fiscal year runs May - April. I need to create a report that spans

JWCrosby said:
Our fiscal year runs from April 1 to March 31, so it spans two calendar years.

My database records expenses along with the date (i.e., a field for expense
and a field for date).

I want to be able to sum all the expenses during our current fiscal year.
Summing is the easy part. What's the formula for selecting dates back to the
most recent April 1 (which might be this calendar year, or last year)?

Thanks in advance.

Jerry
 

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