Creating unique Reports

luizvin

Registered User.
Local time
Today, 13:08
Joined
Jan 18, 2011
Messages
12
I want to create a new report for each student that i have in my database, so i can see the student's information in a report and print it if i want, but only one student per report.

I have a form called StudentDetails, on that i have a ComboBox called GoTo where i can easily access every student by the LastName. What i would like to create is a button in that form where when i click it will open a report with the current information of that specific student, as well as if i change the LastName of the student in the ComboBox.

I tried to create a button and put a code there, but it wasn't so good.

Hope somebody can help me.
Thanks.
 
Assuming you already have a report created, this usually only requires a simple line of code in the click event of a button on your form. Something like;

DoCmd.OpenReport "YourReport", acViewPreview, , "StudentID=" & Me!StudentID

Hard to be more specific without knowing more.
 
That is exactly what i needed.
It works very well, i do no why i was trying to complicate finding another solution.
but that works thank you for your help.
 

Users who are viewing this thread

Back
Top Bottom