T
tbotkin via AccessMonster.com
I am looking for a little guidance in performing a calculation. What I am
looking to do is calculate the total number of houses under warranty for each
day of the year. I can quickly create a query to calculate the number for
today, >=Date()-365 AND <=Date(), but I need to know what the number is for
each day of the year. My initial thought is that I need the date for each
day of the year to reference, so I have created a table containing such. To
perform the calculation I created a form in data sheet view containing the
field of dates that I created in the table. I then added an unbound field
and have been toying with the Dcount function as the fields default value.
This has presented two problems. The first is the calculation is not correct,
the second is the calculation does not change for each value has it relates
to the date field. Here the equation that I am using;
=DCount("[BackLogClosings]![SubLot]","[BackLogClosings]","[BackLogClosings]!
[ClosingDateHO]>= [FXDate] -365" AND "[BackLogClosings]![ClosingDateHo]<=
[FXDate]")
ClosingDateHO is the recorded closing date
FXDate is the fixed date for each day of the year
I openly welcome anyone’s ideas or suggestion on how best to perform this
calculation.
Thanks in advance.
looking to do is calculate the total number of houses under warranty for each
day of the year. I can quickly create a query to calculate the number for
today, >=Date()-365 AND <=Date(), but I need to know what the number is for
each day of the year. My initial thought is that I need the date for each
day of the year to reference, so I have created a table containing such. To
perform the calculation I created a form in data sheet view containing the
field of dates that I created in the table. I then added an unbound field
and have been toying with the Dcount function as the fields default value.
This has presented two problems. The first is the calculation is not correct,
the second is the calculation does not change for each value has it relates
to the date field. Here the equation that I am using;
=DCount("[BackLogClosings]![SubLot]","[BackLogClosings]","[BackLogClosings]!
[ClosingDateHO]>= [FXDate] -365" AND "[BackLogClosings]![ClosingDateHo]<=
[FXDate]")
ClosingDateHO is the recorded closing date
FXDate is the fixed date for each day of the year
I openly welcome anyone’s ideas or suggestion on how best to perform this
calculation.
Thanks in advance.