A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using Sub-report to get desired results



 
 
Thread Tools Display Modes
  #1  
Old September 3rd, 2004, 08:23 PM
Michael
external usenet poster
 
Posts: n/a
Default Using Sub-report to get desired results

I have 2 tables I would like to query results from and generate a report.

table_sales contains line item sales data
table_tracking contains ups tracking info

From table_sales I make 2 querries.

query_sales_summary gives me order summary info.
order_num, order_date, ship_name, sub_total, tax_amt, frt_amt

query_sales_details gives me order detail info.
order_num, item_num, item_desc, item_uom, item_price

From table_tracking I make one query.

query_tracking gives me tracking detail.
order_num, tracking_num, status, signature

What I want to produce is a report that renders information grouped by
order_num sorted by order_date.

I would like to see all the summary data grouped together in the order_num
Header.

The trick for me is that an order_num can have multiple tracking_num's.

This results from an order_num can be multiple packages that when shipped
via UPS are assigned a unique tracking_num per package.

I cannot figure out how to accomplish this at all.

Any help would be greatly appreciated.

thanks
  #2  
Old September 3rd, 2004, 09:16 PM
Melinda
external usenet poster
 
Posts: n/a
Default

Hello,
I had a similar problem with invoices and found that a
Union Query worked quite well. You have to use a little
SQL, but the Access help has good guidance. You can get
to an SQL window by creating a new query in the design
view and then selecting SQL from the View menu.

-----Original Message-----
I have 2 tables I would like to query results from and

generate a report.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Repost-Still Suffering with Subreports IreneJ Setting Up & Running Reports 9 August 31st, 2004 04:55 AM
programmatically add controls to report G Setting Up & Running Reports 2 August 4th, 2004 09:11 PM
include query results in a report AndyS Setting Up & Running Reports 4 July 19th, 2004 09:03 PM
Refencing controls in sub report Joe Setting Up & Running Reports 4 July 15th, 2004 05:03 PM


All times are GMT +1. The time now is 04:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.