The answer is the same as I suggested. You need to substitute your field,
control, and report names for the ones in the sample on the web page.
I generally start by using the command button wizard to write the code to
open the report. Then I modify the code as per the suggested code on the web
page.
If you can't figure this out, come back with the code the wizard has created
as well as the field name storing the "79".
--
Duane Hookom
MS Access MVP
"forest8" <(E-Mail Removed)> wrote in message
news:AF396D8D-8A43-4D3E-A51C-(E-Mail Removed)...
> An addendum to my question.
>
> Can you please explain how this works if originally I had a main form and
> a
> subform and I created a report that had both forms on it?
>
> My main form has information on a student, i.e. name, age, program of
> study.
> The subform is a tabcontrol that deals with detailed information on the
> student.
>
> If there are 100 students, how do I only print out the information for
> student 79?
>
> I hope this isn't too silly to ask but I don't really understand how this
> works. I understand forms but not reports.
>
> Thank you
>
> "Duane Hookom" wrote:
>
>> Take a look at the solution found at
>> http://www.mvps.org/access/reports/rpt0002.htm. You can get a kick start
>> by
>> creating a button using the command button wizard.
>>
>> --
>> Duane Hookom
>> MS Access MVP
>>
>>
>> "forest8" <(E-Mail Removed)> wrote in message
>> news:CC4C0130-53F9-4ACE-84E5-(E-Mail Removed)...
>> > Hi
>> >
>> > I need to print a record for an individual student.
>> >
>> > I have created a report that contains the same information as my form.
>> >
>> > I want to create a button on my form that when clicked on the report
>> > for
>> > that individual is the one being printed.
>> >
>> > I also want the button to be able to print all the records for the same
>> > individual.
>> >
>> > I must admit the queries confuse me so any guidance will be helpful.
>>