473,513 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Empty report grouping

I am creating a database to track scrap on a daily basis at my plant.
I have to provide a weekly scrap report with the amount of each part
scrapped per day. I have the basic database set up, and am trying to
generate a report. I have created a report that will show all the
data. But I need to show either an empty group for the data on days
that there is no scrap or a comment relating as much.

My report is set up with a weekly grouping, a daily grouping and a
grouping for each program we run parts for. I have a query using
Between [Beginning Date] and [Ending Date] to select the records for
this.
When I run the report it shows everything as I had expected, but the
days that we didn't scrap any parts did not have the headers or the
footers show up for that day. is there a way to force this? I have
checked the help and the MS Knowledge base, but I am not sure if it is
a problem with the report or the query.

Thanks for any help.
Nov 12 '05 #1
1 2068
DFS
Brian,

There may be another way, but offhand this is how I'd do it.

1) You'll need a table listing all the available scrap dates in it,
sequentially. Call it tblScrapDates, and add a field named ScrapDate
2) Your scrap details table. tblScrapDetails, with the fields ScrapDate and
ScrapCost

SELECT D.ScrapDate, iif(isnull(Sum(S.ScrapCost)),0,Sum(S.ScrapCost)) AS
DailyScrapCost
FROM tblScrapDates D LEFT JOIN tblScrapDetails S ON D.ScrapDate =
S.ScrapDate
GROUP BY D.ScrapDate;

Substitute your actual table and field names.

Output would resemble:

ScrapDate DailyScrapCost
01/15/03 $200.00
01/16/03 $0.00
01/17/03 $250.00


"Brian Coy" <br******@accessky.net> wrote in message
news:ac*************************@posting.google.co m...
I am creating a database to track scrap on a daily basis at my plant.
I have to provide a weekly scrap report with the amount of each part
scrapped per day. I have the basic database set up, and am trying to
generate a report. I have created a report that will show all the
data. But I need to show either an empty group for the data on days
that there is no scrap or a comment relating as much.

My report is set up with a weekly grouping, a daily grouping and a
grouping for each program we run parts for. I have a query using
Between [Beginning Date] and [Ending Date] to select the records for
this.
When I run the report it shows everything as I had expected, but the
days that we didn't scrap any parts did not have the headers or the
footers show up for that day. is there a way to force this? I have
checked the help and the MS Knowledge base, but I am not sure if it is
a problem with the report or the query.

Thanks for any help.

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2854
by: amber | last post by:
Hello, I have a report in VB.NET/Crystal Reports. I have a criteria form that users select between 2 different types of grouping (group by category or group by year). Can I programmatically...
2
3106
by: Hohn Upshew | last post by:
I need some help to build a report enumerating the products in descending order depending on the sum of liters. In this way i can view the top products sold for a given period.But i fail to do...
3
2320
by: Grim Reaper | last post by:
I know this is probably an easy question, but I could not find/figure it out. Basically, I am printing mailing labels with a "Sorting/Grouping" section that groups the label types together....
3
2712
by: ahaque38 | last post by:
Hello. Using A2K SP3, I am having the following problem with a report using "Sorting and Grouping". I have recently added a grouping in the reports for "Category2<>'CONTRACTS'". I have...
11
3875
by: James P. | last post by:
Hello, I have a report with the Priority field is used as sort order and grouping. The problem is the data in this Priority field if sorted in ascending order is: High, Low, and Medium. How...
8
3488
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
5
1907
by: Mike | last post by:
Hello All, I have a report based upon a query. I have added a control to report footer that calcs the total cost of the inventory: =SUM(). When this total calculation is NOT on the report,...
4
7212
by: Jana | last post by:
Hi! I have an Access 97 report based on tables linked to an SQL back end. The report has 5 subreports in it (unfortunately unavoidable due to the nature of the report) and performance is quite...
1
1258
by: chipshot | last post by:
Hi. First time asking. I have an Access report grouped by and sub-grouped by . For some records, though, the field is empty. The report works properly. However, my problem is that the...
0
7260
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
7160
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
7384
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
7525
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...
0
5685
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,...
1
5086
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...
0
4746
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...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.