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

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********@hotmail.com
Nov 13 '05 #1
1 1702
On Wed, 5 Jan 2005 18:03:04 -0500, "Mark Richards"
<<delete_this_part>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********@hotmail.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
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...
1
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...
4
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...
0
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...
3
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...
6
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...
1
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...
7
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...
3
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.