Print report from Form (1 Viewer)

VzqCrs

Member
Local time
Yesterday, 19:01
Joined
Nov 15, 2021
Messages
54
Hi, I have a Navigation Form and I've added a report so that it's linked to the form by a field - Link Master Fields and Link Child Field so that the report displays the selected record. How can I get it to print? When the Print window pops up, the whole report is displayed rather than just that one record
 

Attachments

  • image001 (3).png
    image001 (3).png
    57.5 KB · Views: 343

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Yesterday, 18:01
Joined
Feb 28, 2001
Messages
27,319
You normally would have to modify the report's .Filter property to select for the single record before printing it, and the VBA call includes a way for you to specify a filter or WHERE clause.


In this link, you can specify a WHERE clause (without the word WHERE) to act as a filter. If the record has a unique key, you would just use that key to select the single record.
 

Users who are viewing this thread

Top Bottom