473,586 Members | 2,854 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to print section headers when no details.

I'm new to access.

I have an orienteering database that has information about locations
all
over the map.

Each location has 0-N clues

I've worked up a report that will print the locations, with their
associated information, and the clues that go with that.

EXCEPT that if the number of clues is 0, the location doesn't print
out.

***
This must be a general issue. I'm just not asking the right questions.
Suppose I had a customer list where I wanted
to print outstanding invoices. I can see that I could want customers
who
had NO outstanding invoices to show up in the list.
Nov 12 '05 #1
2 1997
I expect that your report is based on a query that includes 2 tables:
Locations and Clues. You need to modify the link between the 2 fields
in the query. To verify this, open the query iteslf and check on some
locations that have no clues - if not on the report, they should be not
on the query either. If they are there, then this is not your solution.

In the query's design view, right-click on the join line between the two
tables. (It's easy to miss the line by .1 mm. and get a wrong menu of 8
choices instead of two.) (IF there is no join line because you used a
where clause as another way to link the tables, you'll need to change it
to a join instead.) After right-clicking, select Join Properties and
select the option "Include all records from [the Locations table] and
only those from ..." This should be choice #2 or #3, not #1. This is
called an Outer Join, as opposed to your current Inner Join.

Now, in the grid's fields displaying Location information, make sure
they're from the Locations table, not from similar fields in the Clues
table. Have a look at the query's result before saving and going over
to work on the report - you should see all the locations listed. If
you've changed any fields in the query, check the report and verify the
data sources for your text boxes.

Bruce Pick

Sherwood Botsford wrote:
I'm new to access.

I have an orienteering database that has information about locations
all
over the map.

Each location has 0-N clues

I've worked up a report that will print the locations, with their
associated information, and the clues that go with that.

EXCEPT that if the number of clues is 0, the location doesn't print
out.

***
This must be a general issue. I'm just not asking the right questions.
Suppose I had a customer list where I wanted
to print outstanding invoices. I can see that I could want customers
who
had NO outstanding invoices to show up in the list.

Nov 12 '05 #2
This was the answer:
1. Changed the join option 2.
2. Changed the query from INNER JOIN to LEFT JOIN. (OUTER JOIN is not
syntactically valid...)
3. Set up the clue in the report as a subreport. (If I didn't do that the
location was printed for each clue.)
Bruce Pick <br********@com cast.net> wrote in message news:<J4******* *************@c omcast.com>...
I expect that your report is based on a query that includes 2 tables:
Locations and Clues. You need to modify the link between the 2 fields
in the query. To verify this, open the query iteslf and check on some
locations that have no clues - if not on the report, they should be not
on the query either. If they are there, then this is not your solution.

In the query's design view, right-click on the join line between the two
tables. (It's easy to miss the line by .1 mm. and get a wrong menu of 8
choices instead of two.) (IF there is no join line because you used a
where clause as another way to link the tables, you'll need to change it
to a join instead.) After right-clicking, select Join Properties and
select the option "Include all records from [the Locations table] and
only those from ..." This should be choice #2 or #3, not #1. This is
called an Outer Join, as opposed to your current Inner Join.

Now, in the grid's fields displaying Location information, make sure
they're from the Locations table, not from similar fields in the Clues
table. Have a look at the query's result before saving and going over
to work on the report - you should see all the locations listed. If
you've changed any fields in the query, check the report and verify the
data sources for your text boxes.

Bruce Pick

Nov 12 '05 #3

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

Similar topics

3
5759
by: Meena | last post by:
Hi Every Body, I have created a crystal Report and linked to my vb.net forms and working fine, I added more drill drowns in groups everything fine, but What I need is I am not able to display the lables on details section. I have choosen Hide (Drill Down Ok ) For the groups, The details are being displayed when clicked on a group header but...
3
3716
by: John Peterson | last post by:
Hello all! I'm at my wits end trying to search for what I assumed to be a relatively straightforward task. I have a Web application written in C#, and I have a button on the form that I want to print the current contents of the browser without bringing up the print dialog. At first I thought it was a simple matter to have the button's...
6
3460
by: CSharpguy | last post by:
In my gridview I have 2 -3 template fields which are hyperlinks. I allow the user to print this grid. When the grid prints it also prints the links, how can I take the user to a print preview page and not show the templated fields, (hyperlinks) and also not print those fields?
0
2963
by: John Smith | last post by:
Hello, I am developing a VB.NET 2003 application that will use lots of Crystal Reports. Sometimes the users will preview a report in a Crystal report viewer, and sometimes they will send the report directly to the printer bypassing the Crystal report viewer altogether. When sending the job directly to the printer I use the PrintToPrinter...
45
9073
by: Umesh | last post by:
please help. thanks.
0
2191
by: peter.c.bradley | last post by:
Hi folks, I have an Access report that has an unbound text box in the details section. The report also includes the standard headers and footers. The details section is populated by a query executed during the “Report_Open” event. Depending on the query, the details section can have 1 or more records and each record is a text string of...
3
30800
by: Tim | last post by:
Folks, I'm trying to format a print string so that it reports progress whilst processing a looping structure with a date time stamp appended to the end of the string. This started out life as a simple need to create a display that show progress to users when updating large tables in a data warehouse in real time. I have subsequently...
2
2100
by: dmorand | last post by:
When I try to print a 'print version' of my page it looks fine in IE 7, but when I print in IE 6 the margins are all screwed up. The page itself looks the same in both browsers, it's just when I print the elements look bigger when I print from IE 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
1
8828
by: altaey | last post by:
Question Details: Write a program to find and print a Fibonacci sequence of numbers. The Fibonacci sequence is defined as follow: Fn = Fn-2 + Fn-1, n >= 0 F0 = 0, F1 = 1, F2 = 1 Your program should prompt the user to enter a limit and indicate whether the last number in the sequence printed is either even or odd.
0
7911
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...
0
7839
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...
0
8200
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. ...
1
7954
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...
0
8215
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...
0
6610
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...
0
3836
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...
1
2345
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
1
1448
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.