Question : Access Report Help Needed

Hi,
It's Monday and I have a mental block.. I have an access report based on a query which contains a simple  bill-of-materials list including bom-level, part number and qty.
The report lists all the parts and also associated costs to give totals at the bottom. The qty of the 'top level' part is not always one as I'm using this query to roll-up costs for a batch of parts as well.
With this in mind, I also want the report to calculate the unit cost at the bottom which will simply be the total cost / top-level part qty - the question is, how do I refer to the qty field in the first record of the report? I'm sure I've done this a thousand times but my head has gone!
Thanks in advance.

Answer : Access Report Help Needed

Try the DFirst function
DFirst("[qty]", "<YOURREPORTQUERYNAME>")

Why do you want to refer to the qty of the first record?
Explain a bit more or post a sample and we may be able to give you better advice.
Random Solutions  
 
programming4us programming4us