"PRINTING A SPECIFIC RECORD IN A TABLE" <PRINTING A SPECIFIC RECORD IN A
[email protected]> wrote in message
How do I create a report which prints only one record in my table on a
field
say "PersonName" which contains a value passed from a database lookup?
Many reports are printed by clicking on a Command Button, which executes the
DoCmd.OpenReport method. That method has an argument called Filter, and
another called WhereCondition, either of which can be used to supply
criteria to the Report's Record Source. Open any module, in design view,
type in and put the cursor on OpenReport, press the F1 key, and you should
get good help.
It takes only a little knowledge of VBA to use the Help and sample code to
modify the DoCmd.OpenReport statement that is automatically generated by the
Command Button Wizard.
Larry Linson
Microsoft Access MVP