473,769 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forcing Null Records To Print?

Hi.

I am basically a novice with access. Sorry for the long question, but I
can't find a short way to make this clear....

I have a database I created to track service calls for a client with a few
dozen buildings across the state. They require a monthly report sorted by
location showing all the activity for a given month (**even if there was no
activity for a given location**). I have a basic DB structure I copied from
the access sample "service call management" altered to suit. I built a
report with the info grouped by location (building name, address, Etc) ,
then call number (call number, date, work provided, Etc) and finally, I have
the parts and labor in listed in the detail section. I filter the report
by date range when run.

This all works slick for the locations with a workorder, but I need to find
a way for every location to print even if there is no activity (ie; nothing
in the detail section) for that location. My workaround now is that at the
end of the month I create a dummy workorder for each location without
activity and select a dummy inventory part named "noservice" . I have some
code in the report to un-hide a label stating "no activity this period" if
the part ID = "noservice" (as well as setting the instance of the dummy part
to hidden). It works, but I need to enter about 25 dummy workorders a month
:-(

I figure it must be some code logic like "for each record in group 1 where
the detail section is null then display text stating no activity at that
location" but I can't figure it out.

Any Ideas?

TIA and sorry for the book.
--
Mark Richards
ro********@hotm ail.com
Nov 13 '05 #1
1 1725
On Wed, 5 Jan 2005 18:03:04 -0500, "Mark Richards"
<<delete_this_p art>ro********@ hotmail.com> wrote:
Hi.

I am basically a novice with access. Sorry for the long question, but I
can't find a short way to make this clear....

I have a database I created to track service calls for a client with a few
dozen buildings across the state. They require a monthly report sorted by
location showing all the activity for a given month (**even if there was no
activity for a given location**). I have a basic DB structure I copied from
the access sample "service call management" altered to suit. I built a
report with the info grouped by location (building name, address, Etc) ,
then call number (call number, date, work provided, Etc) and finally, I have
the parts and labor in listed in the detail section. I filter the report
by date range when run.

This all works slick for the locations with a workorder, but I need to find
a way for every location to print even if there is no activity (ie; nothing
in the detail section) for that location. My workaround now is that at the
end of the month I create a dummy workorder for each location without
activity and select a dummy inventory part named "noservice" . I have some
code in the report to un-hide a label stating "no activity this period" if
the part ID = "noservice" (as well as setting the instance of the dummy part
to hidden). It works, but I need to enter about 25 dummy workorders a month
:-(

I figure it must be some code logic like "for each record in group 1 where
the detail section is null then display text stating no activity at that
location" but I can't figure it out.

Any Ideas?

TIA and sorry for the book.
--
Mark Richards
ro********@hot mail.com

Hi
You could add a group footer giving the total number of items in each
group, or containing a control set to a special remark if there are no
items and nothing otherwise (use an iif statement) Then it would be
obvious which groups have no entries. It would only make the total
report significantly longer if most of the groups have very few
entries.

If you were clever you could probably make this footer only appear if
the group was empty (by using a control of zero height with "can grow"
property set to true, or by fiddling with the visibility in the
format event perhaps)
David

Nov 13 '05 #2

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

Similar topics

0
1607
by: Robert Wille | last post by:
I have a number of very common queries that the optimizer plans a very inefficient plan for. I am using postgres 7.2.3. I vacuum hourly. I'm wonderingwhat I can do to make the queries faster. Here are the relevant tables: create table image( imageid integer not null, /* The image's ID */ containerid integer not null, /* The container that owns it */ name varchar(120) not null, /* Its name */ state bigint not null default 0,...
1
2792
by: Robert Wille | last post by:
I have a number of very common queries that the optimizer plans a very inefficient plan for. I am using postgres 7.2.3. I vacuum hourly. I'm wonderingwhat I can do to make the queries faster. Here are the relevant tables: create table image( imageid integer not null, /* The image's ID */ containerid integer not null, /* The container that owns it */ name varchar(120) not null, /* Its name */ state bigint not null default 0,...
4
1844
by: John Baker | last post by:
Hi: I have a query which supports a form. Te form is used to edit, update and change records in the table the query is based on. It all works fine EXCEPT that the "New" record (blank updatable record) always appears as the end of the form (i.e. the bottom), whereas it would be very helpful if it appeared at the beginning (the top of the form). Can anyone suggest a way to make this happen? Regards
0
2194
by: Brad | last post by:
Hi all, I've never come across this one before and am hoping someone may be able to shed some light on a very strange situation. I'm using a DNS less connection and a ADO recordset to retrieve records from a networked database. The connection and query all works fine, but the particular field I'm interested in suddenly becomes NULL after a couple of seconds or after I've referenced it once. I've got some test code below which produces...
3
1191
by: oraustin | last post by:
I have a list box whose value I explicitly set to null in code. Then when I include the list box in a query criteria it fails to match but if I replace the criteria with 'null' then it matches fine. So the code (cleaned up from that written by the query builder) looks like this and works fine SELECT TechnicalCategory FROM tblPrintParts WHERE Description Is Null; but the following doesn't SELECT TechnicalCategory FROM tblPrintParts WHERE...
6
5948
by: doncee | last post by:
I have a list box that is generated on a form by way of a Parameter Query. Problem is whenever I try to refer to the list box, i.e., to update the underlying table, I am getting a "null" value from any row or field I refer to. Have tried using "after update" events as well as a button click event to no avail. The debug window always shows "null" values when I bring it up while trying to examine my code\events. Is there a way to get back to...
1
14520
by: js | last post by:
I am using the following C# code and T-SQL to get result object from a SQL Server database. When my application runs, the ExecuteScalar returns "10/24/2006 2:00:00 PM" if inserting a duplicated record. It returns null for all other conditions. Does anyone know why? Does anyone know how to get the output value? Thanks. ------ C# ----- aryParams = {'10/24/2006 2pm', '10/26/2006 3pm', 2821077, null}; object oRtnObject = null;...
7
3476
by: itm | last post by:
I have a mail out to send to a group of owners with multiple accounts. I want to limit the number of accounts that print on the first page to 20. I want remaining accounts to print on a second page. Is there a way to accomplish this? Thanks so much for your help!
3
12310
ADezii
by: ADezii | last post by:
Null as it relates to database development is one of life's little mysteries and a topic of total confusion for novices who venture out into the database world. A Null Value is not zero (0), a zero (0) length string, an empty Field, or no value at all - so exactly what is Null? The purpose of this Topic is hopefully to explain what a Null Value is, discuss some peculiarities about Nulls, show how we can detect them, and finally, how to convert...
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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
10047
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...
1
9995
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8872
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
7410
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
6674
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();...
0
5304
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.