Re: Calculation
- From: "tbotkin via AccessMonster.com" <u28689@uwe>
- Date: Fri, 10 Nov 2006 01:30:50 GMT
Thanks for the timely reply. Working through your proposed suggestion will
count the number of closing on a given day. This is close to what I am
looking for but not quite it. Please allow me to try and explain this in a
different way. What I want to do is determine the number of obligations for
each given day in the year. The obligation is defined by the warranty period,
which is for 365 days after the closing date. Using the below query I can
determine there are X number of units that have a closing date between
today’s date and today’s date minus 365 days which is the obligation for
today. How can I see this same calculation represented for each day of the
year?
SELECT Count([BackLogClosings]![Sub/Lot]) AS 1yrWrty
FROM [BackLogClosings]
WHERE ((([BackLogClosings].[ClosingDateHO])>=Date()-365 And ([BackLogClosings]
[ClosingDateHO])<=Date()));
In the end I will use this information in a graph to see trends. I can
determine averages per week, month or year. And I could input proposed
closing dates and forecast ahead, determining needed rescores and funds…..
Sorry if I was not clearer in my first posting. Thanks again!
Allen Browne wrote:
You already have the table with a date for each day of the year. Excellent.
I will refer to this table as tblDate, with a field named TheDate.
Create a query using your existing table
Depress the Total button on the toolbar (upper Sigma icon.)
Access adds a Total row to the grid.
Group by the Date field.
Count the primary key field.
Save the query.
Create another query using this query as an input table, as well as tblDate.
Drag tblDate.TheDate onto the date field from date field in the query.
Access draws a join line.
Double-click the join line.
Access shows a dialog with 3 options.
Choose the one that says:
All records form tblDate, and any matches from ...
Drag tblDate.TheDate into the output grid.
Drag Query1.CountOfId into the grid.
The query shows the date and the count.
If you want the count to show as zero instead of blank, change the CountOfId
to this expression:
TheCount: CLng(Nz([CountOfID],0))
I am looking for a little guidance in performing a calculation. What I am[quoted text clipped - 26 lines]
looking to do is calculate the total number of houses under warranty for
Thanks in advance.
--
Message posted via http://www.accessmonster.com
.
- References:
- Calculation
- From: tbotkin via AccessMonster.com
- Re: Calculation
- From: Allen Browne
- Calculation
- Prev by Date: List box field
- Next by Date: Re: Need help setting up relationships and query for form source
- Previous by thread: Re: Calculation
- Next by thread: Re: Calculation
- Index(es):
Relevant Pages
|