473,396 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

A2K Changing grouping on a report gives erroneous result

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

Oct 16 '07 #1
3 1357
On Tue, 16 Oct 2007 01:50:08 +0100, "Deano" <de***@mailinator.com>
wrote:

Eh, group by FullName?
FullName is a calculated column in your query, and the concatenation
of LastName & " " & FirstName.
If you suspect over time you may have two John Smith, then append the
PersonID.

-Tom.

>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

Oct 16 '07 #2

"Tom van Stiphout" <no*************@cox.netwrote in message
news:td********************************@4ax.com...
On Tue, 16 Oct 2007 01:50:08 +0100, "Deano" <de***@mailinator.com>
wrote:

Eh, group by FullName?
FullName is a calculated column in your query, and the concatenation
of LastName & " " & FirstName.
If you suspect over time you may have two John Smith, then append the
PersonID.

-Tom.

Thanks Tom, yes I was thinking about that but not sure what to enter in
Field/Expression when I go into Sorting and Grouping.

=[Surname] & ", " & [Forename] seems to work just great.

Thanks!

Oct 16 '07 #3
"Deano" <de***@mailinator.comwrote in
news:5n************@mid.individual.net:
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
In design view, open the report's sorting and grouping dialog.
add a second group, Firstname. and even a third group the Employee
ID.

Cut and paste the existing header to the lowest group created above.
then go back and set the Group Header tickboxes for the Higher
groups to no.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Oct 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: amber | last post by:
Hello, I have a report in VB.NET/Crystal Reports. I have a criteria form that users select between 2 different types of grouping (group by category or group by year). Can I programmatically...
1
by: MLH | last post by:
I have a challenge... In a table I call tblStuff4Letters with 3 fields: , and . I have a report called rptOutboundCorrespondence that feeds off this table. Sorting & grouping is turned on in...
3
by: ahaque38 | last post by:
Hello. Using A2K SP3, I am having the following problem with a report using "Sorting and Grouping". I have recently added a grouping in the reports for "Category2<>'CONTRACTS'". I have...
8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
4
by: CH | last post by:
Hi, I recently encountered a problem while trying to create a report grouped by certain time frames. However, Access only allows grouping in Minutes or Hours. For example, the first time frame is...
7
by: Anthony Hendrata | last post by:
I have been racking my brain on this one, maybe someone might be able to help me out. What I want to do is be able to group the result of this query into a report. Below is a condensed sample of...
11
by: Bart op de grote markt | last post by:
Hello, I have a very simple problem which I will illustrate with an example: I have the following records in my table: A 1 C A 2 C A 3 C B 8 K B 9 K
2
by: dez5000 | last post by:
I have a query that is pulling a list of patients seen within a certain time frame at certain locations and it also shows whether they had a certain test done. I want to report by location the list...
6
patjones
by: patjones | last post by:
Good afternoon: This seems like it shouldn't be hard, and then again this is how so many problems seem at the outset. My situation is this: I have a report called rptMain319, which is based...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.