Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

Grouping Problem in report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sword856@yahoo.com - 31 Jul 2007 15:45 GMT
Hello all.
I am trying to construct a report that sorts records based on
departments in the organization.  Each department code is a letter and
a number, like B1.  However, each department is divided into
divisions, whose codes are the Departments plus another number, like
B12.  Each division has subdivisions with codes like B123.  All these
are entered into one field, "CodeID", for each employee.  I want to be
able to group the records on my report by Department, i.e., the first
2 characters in each code.  I tried using the grouping and sorting
option, setting CodeID to "Prefix Characters" and selecting "2" for
the GroupInterval, and it only half worked.  It does the grouping
right, but instead of showing B1 as the heading for that group, it
shows B123.  I don't know why it is doing this.  Thanks for any help
on this.

-George
KARL DEWEY - 31 Jul 2007 16:36 GMT
Grouping and sorting controls are only for that function, not for data
display in report output.
Your best method is the use a calculated field in the query used as source
for the report.        Department: Left([CodeID],2)

Signature

KARL DEWEY
Build a little - Test a little

> Hello all.
> I am trying to construct a report that sorts records based on
[quoted text clipped - 12 lines]
>
> -George
sword856@yahoo.com - 31 Jul 2007 17:30 GMT
On Jul 31, 10:36 am, KARL DEWEY <KARLDE...@discussions.microsoft.com>
wrote:
> Grouping and sorting controls are only for that function, not for data
> display in report output.
[quoted text clipped - 24 lines]
>
> - Show quoted text -

Thanks, Karl!  That's exactly what I needed.  I didn't know that
function even existed.  Thanks again for pointing me to it.
-George
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.