Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report Filtered on a Calculated Number

Status
Not open for further replies.

Tiggaa

IS-IT--Management
Nov 2, 2007
5
GB
Hi, sorry if this is in the incorrect segment, I was not sure if it should be in here or in queries.

Scenario: I have a table that has mutiple fields, two of which are "purchase date" and "life expectancy", the table lists all the equipment we have purchased.

I need to produce a report that list by year what equipment needs to be replaced and how much it costs to replace it (using the purchase price).

What I Would Like: I would like someone to give me a pointer as to where I should place the filter / make the calculation. Shoould I make a temperary (calculated) field.

Thank you for your assitance.

Tiggaa

 
Write it in to your query.

You would want something akin to (pseudocode)
Code:
select
(purchase_date + life_expectancy) as date_of_replacement
, purchase_price
from equipment
left join purchase_dates
etc.

then let your report chop up in to years

Shouldn't be too bad if you've nromalized your data, but hey, this is Access, no one does proper data structure in Access [2thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top