Passing value from Form to Report

mithani

Registered User.
Local time
Tomorrow, 09:13
Joined
May 11, 2007
Messages
291
Hello,

I have made one form for report purpose. When I enter Start date and End date, I get report of the date range. What I am looking that I want to print the start date and end date in my report. How can I reference date text box in my report?

thanks

mithani
 
Put a textbox on your report and set the controlsource to

="From " & [Forms]![YourFormName]![YourFromDate] & " to " [Forms]![YourFormName]![YourToDate]
 
Thanks Bob,

I entered this code:

="From " & [Forms]![PO-REPORTS]![OstartDate] & " to " [Forms]![PO-REPORTS]![OendDate]

But showing this error "The expression you entered contains invalid syntax"

Thanks

mithani
 
Where did you put the code? Can you upload a screenshot?
 
thanks bob
 

Attachments

  • screen1.JPG
    screen1.JPG
    81.7 KB · Views: 142
Got it - thanks that helped me see it

="From " & [Forms]![PO-REPORTS]![OstartDate] & " to " & [Forms]![PO-REPORTS]![OendDate]
 
The part that helped me see what I should have seen to begin with was the other part of the error message about a missing operand.
 

Users who are viewing this thread

Back
Top Bottom