Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grouping and displaying text by headers

Status
Not open for further replies.

Cineno

Programmer
Jul 24, 2006
142
US
I have a table with the data organized as such:

Num Header Function
1 Places New York
2 Places Boston
3 Title Director

I would like the report to display it like this:

Places
-New York
-Boston

Title
-Director

So basically, I'm trying to come up with a report that groups the "Functions" by the same "Headers" and orders them by "Num." Does anyone know of a way to accomplish this and have it display like above? Thanks for any help!!
 
How familiar are you with crosstab queries? There is a crosstab wizard in the queries tab that will point you in the right direction...

"Before you criticize someone, you should walk a mile in their shoes.
That way, when you criticize them, you're a mile away and you have their shoes."
 
It looks like all you need to do is group your report by [Header] field and then order by Num. Display the header section for the [Header] field.

Duane MS Access MVP
 

Is this possible with Access 97??? I can't find a header section.

Thanks in advance for any response of help.

Kingsley
 
Click on View | Page Header/Footer in the menu bar.

"Before you criticize someone, you should walk a mile in their shoes.
That way, when you criticize them, you're a mile away and you have their shoes."
 
If you want to display "group" headers and footers, you need to view the Sorting and Grouping dialog in your report design. This will allow you to select a field or enter an expression to group by.

Duane MS Access MVP
 
I actually wrote some code to rearrange the table and now I can identify the headers by their id's. Got it working now. Thanks for the suggestions!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top