
Originally Posted by
spudboy
Well, the last line in a rollup has all null values (apart from the values you are summing), so you can pick the last line by asking for all the "Group by" fields to be null.
If I assume you have a single field for firstname/Surname, your Location/name results rollup query will give you something like this:
East, Fred Smith, 1111, 1111
East, Mary Jones, 2222, 2222
East, NULL, 3333, 3333
West, David Jones, 2222, 2222
West, Jenny Jones, 3333, 3333
West, NULL, 5555, 5555
NULL, NULL, 8888, 8888
If you then use this as input to another query/view, and filter for the Name field to be not null, except where the location field is null you would get this recordset:
East, Fred Smith, 1111, 1111
East, Mary Jones, 2222, 2222
West, David Jones, 2222, 2222
West, Jenny Jones, 3333, 3333
NULL, NULL, 8888, 8888
What do you think of that solution?
Bookmarks