Hi Kit Marty,
Try out this tip that I wrote on this subject:
How to print only one page of a multipage report
http://www.access.qbuilt.com/html/reports.html#PrintOnePgOfRpt
So, you just need to have a form that displays your people. The form's
recordsource must include a primary key field for the people table. Then, you
add a command button to the form that will open the same report, except that
you include the optional WhereCondition argument. Something like this
(example shown below is for a numeric primary key):
Private Sub cmdPrint_Click()
On Error GoTo ProcError
DoCmd.OpenReport "rptPeople", acPreview, _
WhereCondition:="pkPersonID = " & Me.pkPersonID
ExitProc:
Exit Sub
ProcError:
Select Case Err.Number
Case 2501 'Report open cancelled
Case Else
MsgBox "Error " & Err.Number & ": " & Err.Description, _
vbCritical, "Error in procedure cmdPrint_Click..."
End Select
Resume ExitProc
End Sub
where rptPeople is the name of the report, and pkPersonID is the name of the
field that is the primary key. Make the appropriate substitutions.
Tom
http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________
:
I have a database in Access 2003 with a number of tables, queries and
reports.
One of the reports gives a listing of all people in the database and what
functions they participate in.
How do I set up a special report (or query) so that I can enter an
individual's name and then get this report only for that person and not for
everyone in the database?
I'm sorry if this seems overly simple, but I'm stumped.
Thanks,
Kit Marty