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

Reports - can I create an index?

I have a report which has several sub reports. Each sub report starts on its
own page, and may be 2 or 3 pages long.

I'd like to create an index on the first page of the main report. Something
like:

Clients..............p1
Sales................p3
Salesmen.........p4

I'm not sure how I would do this, as I don't know before hand what page a
sub report will start on.
Is this even possible?
Thanks
Vayse
Aug 31 '06 #1
3 2410
See:
How to Create a Table of Contents or Index for a Report
at:
http://support.microsoft.com/kb/210269/en-us

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Vayse" <va***@deadspam.comwrote in message
news:zD*******************@news.indigo.ie...
>I have a report which has several sub reports. Each sub report starts on
its own page, and may be 2 or 3 pages long.

I'd like to create an index on the first page of the main report.
Something like:

Clients..............p1
Sales................p3
Salesmen.........p4

I'm not sure how I would do this, as I don't know before hand what page a
sub report will start on.
Is this even possible?
Thanks
Vayse

Sep 1 '06 #2
Thanks. I'm using an ADP, so I can't use temp tables, but I'll be change the
code to use an array easily enough.

The kb method requires the report to open to generate the TOC. Is is
possible that I could open the report once, close it through code, then re
open. When I re open I would have the information required for the TOC. Is
there a way to open the report 'invisibly' the first time? Or even a way of
closing it?
Thanks
Vayse

"Allen Browne" <Al*********@SeeSig.Invalidwrote in message
news:44***********************@per-qv1-newsreader-01.iinet.net.au...
See:
How to Create a Table of Contents or Index for a Report
at:
http://support.microsoft.com/kb/210269/en-us

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Vayse" <va***@deadspam.comwrote in message
news:zD*******************@news.indigo.ie...
>>I have a report which has several sub reports. Each sub report starts on
its own page, and may be 2 or 3 pages long.

I'd like to create an index on the first page of the main report.
Something like:

Clients..............p1
Sales................p3
Salesmen.........p4

I'm not sure how I would do this, as I don't know before hand what page a
sub report will start on.
Is this even possible?
Thanks
Vayse


Sep 1 '06 #3
In the lastest versions of Access you can open it hidden:
DoCmd.OpenReport "Report1", acViewPreview, WindowMode:=acHidden

Closing it programmatically is:
DoCmd.Close acReport "Report1"

The real problem with that approach is that Access only fires the events of
the sections for the pages it has to format. That means it needs to walk
through all the pages to generate the TOC. I haven't tried this, but you
might be able to output the report to the nul: device as a way of forcing it
to walk through its pages and generate the contents data:
DoCmd.OutputTo acOutputReport, "Report1", acformatTXT, "nul:"

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Vayse" <va***@deadspam.comwrote in message
news:Zn*******************@news.indigo.ie...
Thanks. I'm using an ADP, so I can't use temp tables, but I'll be change
the code to use an array easily enough.

The kb method requires the report to open to generate the TOC. Is is
possible that I could open the report once, close it through code, then re
open. When I re open I would have the information required for the TOC. Is
there a way to open the report 'invisibly' the first time? Or even a way
of closing it?
Thanks
Vayse

"Allen Browne" <Al*********@SeeSig.Invalidwrote in message
news:44***********************@per-qv1-newsreader-01.iinet.net.au...
>See:
How to Create a Table of Contents or Index for a Report
at:
http://support.microsoft.com/kb/210269/en-us

"Vayse" <va***@deadspam.comwrote in message
news:zD*******************@news.indigo.ie...
>>>I have a report which has several sub reports. Each sub report starts on
its own page, and may be 2 or 3 pages long.

I'd like to create an index on the first page of the main report.
Something like:

Clients..............p1
Sales................p3
Salesmen.........p4

I'm not sure how I would do this, as I don't know before hand what page
a sub report will start on.
Is this even possible?
Thanks
Vayse

Sep 1 '06 #4

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

Similar topics

5
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields...
0
by: Ian | last post by:
(Sorry if I have repeated this, it did not appear the first time) I have the following code on a button. The idea is that when this button is clicked it prints several reports automatically then...
1
by: intl04 | last post by:
I am getting strange print-related error messages when trying to create (not print!) reports. For example, when I click 'new' to create a report then choose 'design view', I get an error message...
3
by: Gheaci Maschl | last post by:
Hi all! I would like to have your opinion about my problem and my proposal how to solve it: Ingredients: - BTriev database - Crystal Reports - maybe MS Access - Liinos6 (small ERP software)
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
3
by: bob | last post by:
Hello, I'm trying to create reports in my application using HTML. I don't want to mess around typing in stuff like html = "<Table>blah</Table>" I want something like row = new HTMLRow("Some...
12
by: Tony Ciconte | last post by:
We are evaluating the prospect of integrating and/or using Crystal Reports with some of our current products. Some of these are still in Access 97 and are running well. Since we cannot include the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
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,...

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.