Hi fredg:
Thank you for your help. I tried your way and it did show up the data.
However, I would like to see all other records on the form to show up on the
report.
For example, I have two textboxes in the report's detail section. The first
textboxes has the value ="Your grade is " & [Grade] & " and your rank is " &
[Rank] & "." and the second has almost the same values as the first one plus
a little more different values.
Assume I get two records from the record source of the form. The first
record has the empty RANK value, but the second record has the RANK value is,
say, 4. When I clicked on the button to show up the report, the first textbox
on the report shows the value of the first record correctly, but the second
textbox show empty values for both [GRADE] and [RANK]???
I suspect that the code just works for the first record. Am I right? If so,
what can I do to make all data show up?
Thank you,
fredg said:
Can you please show me how to grab data that displayed in the form and when
the user clicks on a button on that form, those data will be sent to display
on the REPORT in a text box, for example, ="Your grade is " & [Grade] & "."
([Grade] is on the form)
Thank you,
In an unbound control in the report:
="Your grade is " & forms!FormName![Grade] & "."
The form must be open when the report is run.