473,666 Members | 2,101 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

access 2003 summary report problem

2 New Member
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 2792
MMcCarthy
14,534 Recognized Expert Moderator MVP
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
1868
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 body of a post is considered to be original if it
15
13303
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 to be able to click a button and have the Access report saved as a pdf in a directory specified by me the programmer. I have seen a posting by John Baker promoting a web-sight that has an mde that one can reference in any database but after 30...
29
15527
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" ---Start of test.aspx---- <%@ Page language="C#" AutoEventWireup="false" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD>
52
9956
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 2005, and, since he already has licenses for Office Pro 2002, he wants to upgrade to that. I've been saying that we need to upgrade to Access 2003, not 2002, even if Office is kept at 2002. We are also looking to do a fair amount of...
9
4485
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 like to know is the stability, speed & ease of use of both the products. I believe Access 2007 has a new file format too and that it may be slower.
0
8360
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8876
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8784
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8642
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7387
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2774
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.