A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Generating Individual Records in a Report



 
 
Thread Tools Display Modes
  #1  
Old August 10th, 2004, 08:37 PM
Paul
external usenet poster
 
Posts: n/a
Default Generating Individual Records in a Report

I have a user that needs the ability to print individual records from a
table. What I have now is just a form, and to print by an individual record
I showed the user how to filter the record(s) they need. The form gets the
job done but will sometimes give an extra page when it prints, and also has
my command buttons on the printout. I would like to get rid of that and have
a report instead to generate the record(s) needed. However, I am completely
stumped on how to give the user the ability to make the report print only the
records the user specifies and how to format the report to display only one
record per page. I'm sure this is basic for most so excuse my simplistic
question. Any help or suggestions would be greatly appreciated.

TIA,
-Paul
  #2  
Old August 11th, 2004, 06:42 AM
Ernie
external usenet poster
 
Posts: n/a
Default Generating Individual Records in a Report

Forms are for viewing, reports are for printing.

Create a report with a layout similar to your form and in
the control which you use to print, add to the 'OnClick'
event a line similar to:

DoCmd.OpenReport YourReportName, _
acViewPreview, , "[MainFilterField] like '" & Forms! _
frmFormName![MainFilterField] & "'"

basically you are adding the filter that you used to
select the record for your form to the report for
printing. If this record takes two pages (or more) that's
another problem, but the above should get you just one
record on your report.

The above assumes that your filter control is text, if it
is numeric, drop the single quotes (') as well as the
trailing & "'"

YourReportName should be whatever you called your report
(don't use the same name as your form)
MainFilterField is the name of the column that you are
using to filter on your form.

HTH
-----Original Message-----
I have a user that needs the ability to print individual

records from a
table. What I have now is just a form, and to print by

an individual record
I showed the user how to filter the record(s) they need.

The form gets the
job done but will sometimes give an extra page when it

prints, and also has
my command buttons on the printout. I would like to get

rid of that and have
a report instead to generate the record(s) needed.

However, I am completely
stumped on how to give the user the ability to make the

report print only the
records the user specifies and how to format the report

to display only one
record per page. I'm sure this is basic for most so

excuse my simplistic
question. Any help or suggestions would be greatly

appreciated.

TIA,
-Paul
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying null records in a a report Scott Setting Up & Running Reports 1 August 9th, 2004 08:47 PM
Report prints additional page with no records Nelson Setting Up & Running Reports 1 June 30th, 2004 09:04 PM
How to Manipulate the group and sorting in a report? Jorge Novoa Using Forms 2 June 9th, 2004 01:12 AM
Putting certain records on own page in report CEVisker Setting Up & Running Reports 0 May 21st, 2004 11:41 PM


All times are GMT +1. The time now is 02:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.