"Dave" <da*******@gmail.comwrote in message
news:8b**********************************@b40g2000 prf.googlegroups.com...
Hello!
What's the best way to make a button print *just* the selected
(displayed) record of a subform, when that subform is currently part
of a larger form?
Thanks!
Not sure if there is a best way to print a form. You ought to be printing a
report.
However, here's one way. Filter the subform so it has just the record you
want in its recordset, print the form, then switch off the filter:
With Me.SubformControlName.Form
.Filter = "FieldName = <whatever>"
.FilterOn = True
End With
'Do the print out
Me.SubformControlName.Form.FilterOn = False