scottpw said:
Thank you for your quick response.
I tried option 1 earlier today and acquired a "Enter
Parameter Value" dialog with a title of "1".
My apology, as I should have said "with Control Source of =1". Try that
again. I just did it to verify my suggestion, and it worked nicely for me.
Unfortunately, I am not familiar with the process to
apply option 2. I am unable to find it in my Access
Bible Book.
Is there any guidance on this process you can point
me to; or, is it simple enough with some direction?
I don't have, or use, the Access Bible... last copy I owned was back in
Access 2.0 days. But I can't imagine it not including _something_ about
"Subreport".
But, also, I was dismayed to discover how difficult it is to find
"subreport" in Access 2002 Help, but it is there -- click the Contents tab
on Help, then click the + beside "Reports and Report Snapshots", then click
the + beside "Advanced Reports", then click the + beside "Subreports", and
you'll see two topics "About subreports" and "Create a subreport".
It's much easier in Access 2003 "online-primary" Help, if connected to the
Internet -- search on "subreport" and the first topic that appears is
"Create a subreport".
But, it _is_ simple. Create a Report for the details, at least a little
narrower than the main Employee Report (whose RecordSource now contains only
Employee Data not Employee joined with Employee Detail). Don't bother with
Report Header or Report Footer because they won't show, anyway. Then save
the Detail Report.
Open the main Report, and look in the Toolbox (which is, by default, on the
left of the page in Report design view), make sure the "magic wand" is
selected so you'll see the Wizards for Controls that have them. Move down
past the Tab Control button to Subform/Subreport, click the Control, and
drop it on the Report in approximately the position that you want it (you
can move it later if it is not exactlly where you want it). Follow the
prompts in the Wizard, one of which will let you choose the "Source
Object" -- choose your detail Report, just previously saved. Check to see
that the Wizard used the common field (probably Employee ID) in the
MasterLinkFields and ChildLinkFields properties to synchronize the main and
sub-reports.
Larry Linson
Microsoft Access MVP