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

Report Output

Hi there,

On monthly reports, there are 7 records (7 rows). I want it to always
show these 7 rows, even if a record for a particular "Program" and
"Team" do not exist--and even if it didn't exist, I want it to show
zeros in the columns. As of now, I do this by creating a record whose
fields are all 0 in order to make it so these 7 rows always show up. Is
there a better way than creating these "0" records which unnecessarily
add to the size of the database?

Thanks!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #1
2 1563
Steven Stewart <o6***@unb.ca> wrote in message news:<3f*********************@news.frii.net>...
Hi there,

On monthly reports, there are 7 records (7 rows). I want it to always
show these 7 rows, even if a record for a particular "Program" and
"Team" do not exist--and even if it didn't exist, I want it to show
zeros in the columns. As of now, I do this by creating a record whose
fields are all 0 in order to make it so these 7 rows always show up. Is
there a better way than creating these "0" records which unnecessarily
add to the size of the database?

Thanks!


is this report based on one table or many? Could we see the SQL?
(Sorry, my psychic powers are failing...) Sounds like you're looking
for an outer join, but without a clearer description, it's hard to
tell.
Nov 12 '05 #2
There is an Employees table and DataRecords table. They are joined by
EmployeeID (INNER JOIN). It is a one-to-many relationship; one employee
can have many records.

The DataRecords table has a combined primary key that includes
EmployeeID, Program, Team, Date. There also are several fields for
statistics that are stored in the record.

Sometimes, there is no record for a given date for a particular program
and team, so in order to make it show up on the report, I have to create
a record for an employee named "work tracker" for that program/team/date
with all the stats at 0. This is necessary because even if the stats
are 0, they are supposed to show up on the report. If I didn't do this,
the row showing that program/team for a given date would not show up in
the report at all because there would be no record existing to show it.
By doing it the way I am now doing it, it will show up.

Rather than storing a bunch of records with the stats all set to zero, I
am wondering if there is a way to get it so that the report will
recognize that no record exists for a given program/team/date and
display this in the report without my having to create these extra
records.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3

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

Similar topics

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...
3
by: Phil Stanton | last post by:
In code I am opening a report in deign view, adding code to the report to output it to Word in an editable form. I then want t close the report but not save the changes. Is there any way or...
1
by: Wayne | last post by:
I'm trying to save a report as a snapshot. If I use this code: DoCmd.OutputTo acOutputReport, "Snapshot Format (*.snp)", , False everything works fine, the file save dialogue box appears and...
5
by: bcanavan | last post by:
When I export xml(and xls) from Access 2003 the result is a complete report in a single page. I would like to get the entire report in a single page (one trip to the server) for printing and...
1
by: Andy_Khosravi | last post by:
I'm having trouble building a query to gather the information I need from a table. I need to be able to assemble an inventory report that displays receipts, output, and running inventory from a...
0
by: sundowner225 | last post by:
Could someone help me with an output problem? I have an access database that I need to create some xls output from. Basically, I have three tables: Faculty_Table: Fields=ID,Name, Type,...
1
by: davidreid | last post by:
Hi, I created 2 seperate Crystal reports and each report performs its own calculations. However, I need to multiply the output of Report 1 with the output of Report 2. I created a new Crystal...
2
by: Mark | last post by:
Hi All, I have hit a stumbling block whilst trying to automate the output a report where the source for the report is a query that contains a parameter. The query is as follows: PARAMETERS...
3
by: jambonjamasb | last post by:
Hi I have two tables: email_tbl Data_table Data table is is used to create a Form Data_form
4
by: dhstein | last post by:
I'm trying to loop through an xml file to process each line which represents a report to be generated. I am stuck. I am attaching the xml file and the perl script. Rename Reports_xml.txt to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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
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,...

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.