Microsoft
Software
Hardware
Network
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
How to replace all onclick events to ontouchstart using jQuery
Delete from table based on full-row results of subquery
Kill All MySQL Sleeping Connections
Cisco Unity Call Handlers
Using DLookup in VBA code on Access Form
How do I prevent Excel Window from popping up when running?
XML parsing with minidom
SELCT statement based on Javascript Image change code
IDE/PATA Seagate 3.5" Hard Drive Won't Turn On / Power On
read pdf from blob column write to file