473,395 Members | 1,464 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,395 software developers and data experts.

access 2003 summary report problem

I am trying to create a summary report that will be run monthly for Clients. I just cant seem to work it out. Each client can order 3 types of products. Each type consists of product codes describing the product.

So, ClientX can order a 1,2 and/or 3 product that belong to TypeA and product 4,5 which belong to TypeB. Each product order also has an ascending status code ascociated with how far along the product is to being complete/cancelled.

I need the report to have a summary of total products ordered for each type, total for product completed including average of the time it takes, and total cancelled. These are all within the previous month but I also need the report to have a total of outstanding items within the last 120 days.

I am able to query a list of all the product ordered by all the clients and i am able to display the total products ordered for each Type by client, but I am having trouble also displaying the total completed, the TAT, outstanding and cancelled products in the report mainly because I cant seem to get the join on the table with the product status code to display without chopping data.

Im thinking it should be a right outer join for the table but any advice would be appreciated. I am also wondering if handling this with VBA code and some temp tables might be suitable for this vs a complex query with a lot of calculated fields in the report. Any opinions? Thanks for any help.


similar key/fk structure on the three tables

table main table prd table status

ID ID ID
f1 SubID SubID
f2 f3 StatusCode
May 5 '07 #1
1 2781
MMcCarthy
14,534 Expert Mod 8TB
I am trying to create a summary report that will be run monthly for Clients. I just cant seem to work it out. Each client can order 3 types of products. Each type consists of product codes describing the product.

So, ClientX can order a 1,2 and/or 3 product that belong to TypeA and product 4,5 which belong to TypeB. Each product order also has an ascending status code ascociated with how far along the product is to being complete/cancelled.

I need the report to have a summary of total products ordered for each type, total for product completed including average of the time it takes, and total cancelled. These are all within the previous month but I also need the report to have a total of outstanding items within the last 120 days.

I am able to query a list of all the product ordered by all the clients and i am able to display the total products ordered for each Type by client, but I am having trouble also displaying the total completed, the TAT, outstanding and cancelled products in the report mainly because I cant seem to get the join on the table with the product status code to display without chopping data.

Im thinking it should be a right outer join for the table but any advice would be appreciated. I am also wondering if handling this with VBA code and some temp tables might be suitable for this vs a complex query with a lot of calculated fields in the report. Any opinions? Thanks for any help.


similar key/fk structure on the three tables

table main table prd table status

ID ID ID
f1 SubID SubID
f2 f3 StatusCode
Post the SQL you are currently using. Tell us what results you are getting and what results you need and we'll see if we can help
May 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: edo | last post by:
100 Day Analysis Following is a summary of articles spanning a 100 day period, beginning at 10 Sep 2003 06:41:30 GMT and ending at 19 Dec 2003 04:09:06 GMT. Notes ===== - A line in the...
15
by: Mark C | last post by:
All, I have exhaustingly been looking through the newsgroups in search of a way to systemically output an Access 97 report to a pdf file using the full version of Adobe Acrobat. I want the user...
29
by: Patrick | last post by:
I have the following code, which regardless which works fine and logs to the EventViewer regardless of whether <processModel/> section of machine.config is set to username="SYSTEM" or "machine" ...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.