Question Display "headers" over grouped items in table

redbe4rd

Registered User.
Local time
Today, 14:48
Joined
Sep 19, 2012
Messages
12
Hello all,

I have a table of items for our companies quotes. When we go to print out our quotes to send to the customers, the salespeople would like most of the items to be grouped under certain "headers" for the systems they are part of.

Ex:

Autopilot System
Part #1 Qty 2
Part #2 Qty 1

PA/GA System
Part #4 Qty 4
Part #5 Qty 1

My 'Items' table currently has these fields:

ID (PK)
System_ID (FK for 'Systems' table)
Part_No
Qty

etc...

'Systems' table has these:

ID (PK)
Sys_Description

I have a query using a RIGHT JOIN and a GROUP BY to tie everything together, I'm just not certain how to go about displaying the information the way I did above.
 
I haven't tried this out yet, it's just an idea floating in my head:
Create a query that lists the groups, such as a Distinct query on the group field. Tie that to your main report. Create a sub-report that is tied to the main report through the group field.
 
You're not going to kill to many orphans and nuns by playing around with it. Don't be afraid to get in there and try your ideas out.

With that said, you shouldn't need a sub-report. Just one query to bring it all together, you can then use a grouping in your report to get all the parts under the appropriate System Heading.
 
I got my report looking proper using the grouping like plog suggested.

2ikea82.jpg


Is there any way to accomplish this same feat on a form? :D

Personally, it doesn't bother me having the system repeated on every line when viewing it on a form, but for aesthetic purposes, they'd prefer it not. If it's too much of a hassle to accomplish, I'll just tell them it's not possible. :cool:
 
I think you could accomplish what you want in a Form by using sub-forms. Your main form would hold feed off the Systems table and then the sub-form would show all the data in parts that match the System.
 
I've tried using sub-forms, but it won't let me display the main form in Continuous Form mode, so it limits me to viewing one system at a time.
 

Users who are viewing this thread

Back
Top Bottom