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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Printing report for current record



 
 
Thread Tools Display Modes
  #1  
Old May 26th, 2004, 04:48 PM
Linda
external usenet poster
 
Posts: n/a
Default Printing report for current record

My database manages applications. When an application is
approved, I would like to print my letters (set up as
reports) for the current record. I have a button in my
form for printing letters which currently links to a
queries for all records approved "today". However, there
have been several situations where I need to
print/reprint the reports a specific record. I cannot
figure out how to print for just the current record.

Any help would be very much appreciated!
  #2  
Old May 26th, 2004, 05:46 PM
Basil
external usenet poster
 
Posts: n/a
Default Printing report for current record

I'm a bit confused by what your reports show/records are/where records are (on a form I assume).

If the problem is that the reports show all records, then you can filter on open of the report.

Assuming that you are opening the report from a form (which is where your records are visible), you can have a button that says "Print Report for Current Record" - or something like that. In its event you can have something like this:

DoCmd.OpenReport "rptLetters", acViewNormal, , "[ID] = " & Me.txtID

The last bit effectively puts a Where bit of SQL on your report's recordsource.

I hope this helps, if not please give more info.

Basil

----- Linda wrote: -----

My database manages applications. When an application is
approved, I would like to print my letters (set up as
reports) for the current record. I have a button in my
form for printing letters which currently links to a
queries for all records approved "today". However, there
have been several situations where I need to
print/reprint the reports a specific record. I cannot
figure out how to print for just the current record.

Any help would be very much appreciated!

 




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


All times are GMT +1. The time now is 06:16 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.