Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Report Control display Form Variable 2

Status
Not open for further replies.

Enkrypted

Technical User
Sep 18, 2002
663
US
I have a report with a text control on it currently set to display the date ( =Date() ). I was wondering how I can replace that with information entered into a field on my form.

Example: I have a form with two fields labeled StartDate & EndDate. On my report, I want to subsitute the =Date() with the user-input information in the StartDate and EndDate fields on the form.

Is there a specific way to do this? Any help is appreciated!

Enkrypted
A+
 
This works. Thank you! If I want to add the End Date with that, would it be:

Code:
=[Forms]![FormWithTwoFields]![StartDate]![EndDate]

Enkrypted
A+
 
=[Forms]![FormWithTwoFields]![StartDate] & " - " & [Forms]![FormWithTwoFields]![EndDate]

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks PHV! This works great! Appreciate the help!

Enkrypted
A+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top