passing Date info to report from a form

J

J. Lund

I have a form which asks for a start and end dates. Those dates are then
used for a record selection query to produce a report. The query and report
work. However, is there a way to pass the start and end dates (from the
form) to the report? The dates would then be used to show the date
selection criteria used in producing this report. Any help would be
appreciated.
 
F

fredg

I have a form which asks for a start and end dates. Those dates are then
used for a record selection query to produce a report. The query and report
work. However, is there a way to pass the start and end dates (from the
form) to the report? The dates would then be used to show the date
selection criteria used in producing this report. Any help would be
appreciated.

Add an unbound control to the Report Header.
Set it's control source to:
="For Sales between " & forms!FormName!StartControlName & " and " &
forms!FormName!EndControlName

Change FormName to the actual name of the form.
Change StartControlName and EndControlName to the actual name of those
controls on the form.
The form MUST be open when the report is run.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top