I've been asked to "fix" someone else's query which I thought was going to be simple, and may yet be, but I'm stuck.
I don't have the code in front of me to work at this moment, but I know the problem.
The query selects columns grouped by File_number, dates, and sums the money column by date. The output could look like this:
AB101 01/01/2001 $1,005.51
AB101 02/21/2001 $3,145.99
AB101 03/05/2001 $5,492.38
But what the user wants is for the query to select the LAST row only. In this case, AB101 03/05/2001 $5,492.38
In design, I chose "Last" (instead of "Sum" or "Group by"
in the date column, and I got AB101 03/05/2001 $9,643.88
I tried using "Last" in the money column, too, but that didn't work either.
Is this another time for a function? Or am I missing something in design mode?
Thanks for any help,
Ken
I don't have the code in front of me to work at this moment, but I know the problem.
The query selects columns grouped by File_number, dates, and sums the money column by date. The output could look like this:
AB101 01/01/2001 $1,005.51
AB101 02/21/2001 $3,145.99
AB101 03/05/2001 $5,492.38
But what the user wants is for the query to select the LAST row only. In this case, AB101 03/05/2001 $5,492.38
In design, I chose "Last" (instead of "Sum" or "Group by"
I tried using "Last" in the money column, too, but that didn't work either.
Is this another time for a function? Or am I missing something in design mode?
Thanks for any help,
Ken