I have a nice report that uses sql to report employee absences.
I grab the employee and related absence data using the employee id field
which is unique.
I use the employee id as a header on the report and the absence data is in
the Detail element.
The problem
-------------
This gives me a report that appears jumbled up to the user but correct in
every respect. Now if I want to sort by the employee surname I can change
the header to the surname field but if there are two Smiths for example
their absence data becomes merged under the name of the first Smith.
What I need
-------------
I want my absence report to be grouped by each individual Surname, showing
absence data for each person, so that the report appears sorted by Surname.
Any advice about this? Since I allow duplicate surnames to be entered, when
I come to group by surname I get data grouped incorrectly. Is there
something I can do with the group header sorting to distinguish each person
e.g John Smith from Fred Smith.
thanks
Martin