I have an access 2007 database ... a report I am running, uses a query that uses a one to many relationship. The one table has the person's name, etc. and the many table, has values such as how many times they had dinner out for example ...
... now, in the report, I want to take the second 'occurrence' of the above field ("# of dinners out") and subtract it from the first 'occurrence' of the SAME field???
I do need to actually show the first occurrence and second occurrence values in the report and then the third field would show the difference between them ... well of course there is a SUM function but no SUBTRACT function ... you cannot use the minus because its the same field ... just 2 occurrences (or 2 records of the same person)
It would look something like this:
Name # dinners out
1st 2nd diff
Joe 10 12 2
Help!!
Thanks, Tina
... now, in the report, I want to take the second 'occurrence' of the above field ("# of dinners out") and subtract it from the first 'occurrence' of the SAME field???
I do need to actually show the first occurrence and second occurrence values in the report and then the third field would show the difference between them ... well of course there is a SUM function but no SUBTRACT function ... you cannot use the minus because its the same field ... just 2 occurrences (or 2 records of the same person)
It would look something like this:
Name # dinners out
1st 2nd diff
Joe 10 12 2
Help!!
Thanks, Tina
Comment