I want to open a record in a form and pick a print button to only print the record in front of me, not the whole query of records. Seems simple but it escapes me.<br><br>Thanks,<br><br>Rod
have the report either:<br>1. running off a query that has the same record source as the form, with criteria in the primary key field that says[Forms]![YourFormName]![PrimaryKeyName]<br>so that is limits to just the displayed record.<br><br>or <br><br>2. use the code<br><b>Private Sub<br> Dim stDocName As String<br> Dim stLinkCriteria As String<br><br> stDocName = "Your Report Name"<br> <br> stLinkCriteria = "[PrimaryKey]=" & Me![PrimaryKey]<br> DoCmd.OpenReport stDocName, acViewNormal, stLinkCriteria<br>End Sub<br></b><br> <p>Brian Famous<br><a href=mailto:bfamous@ncdoi.net>bfamous@ncdoi.net</a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.