I created a form that has a text box and a button. The text box is a dynamic Footer for the Report Form. The button simply does a Preview of the Report. I also have a check box if the user wants to have the footer displayed or not.
Once the Report Form is open is design Mode, make sure the form is also open. Then simply add the following to a text box on the Report form.
Ok, Once you have a Form, you need to reference the form name, field.
In my example:
=IIf([Forms]![frm_Commission_Report]![chk_Display]=1,[Forms]![frm_Commission_Report]![REPORT_TEXT],""
chk_Display is a Checkbox on my form
REPORT_TEXT is a Text Box on the form.
frm_Commission_Report is my form name.
If you choose not to use a Check box and simply display the contents of the Text Box in all cases, you can use the following on the Report Form within a Text box:
= [Forms]![YOUR FORM NAME]![FIELD NAME ON FORM]
Again, the Form that is used to Launch the Report must be open.
htwh,
Steve Medvid
"IT Consultant & Web Master"
e-Mail: Stephen_Medvid@GMACM.com
Create a Form in Design View.
Create a field Text Box Called Test1.
Save the form as Form1.
Create a Report Form.
Within Detail Body Create a field Text Box Called Test2.
For the Test2 Field change Control Source to
"=[Forms]![Form1]![TEST1].[Value]"
Run Form1. Enter Value for Test1
Run Report - Should see value from Form1.
htwh
Steve Medvid
"IT Consultant & Web Master"
e-Mail: Stephen_Medvid@GMACM.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.