|
|
print a date range from parameter query on a report header?
I am printing a report based on a date range. The user inputs the start and
End date for the report (parameter query). How do I print the Start and End
dates on a report header.
|
|
0
|
|
|
|
Reply
|
Utf
|
1/20/2010 1:35:01 PM |
|
IMO, parameter prompts are never good user interface. There is no
functionality or error checking. I much prefer using controls on forms for
ALL user interaction.
You can use the parameters in control sources as if they were fields. For
instance:
Control Source: ="From " & [Enter Start Date] & " To " & [Enter End Date]
or
Control Source: ="From " & Forms!frmRpt!txtStartDate & " To " &
Forms!frmRpt!txtEndDate
--
Duane Hookom
Microsoft Access MVP
"siyeducation" wrote:
> I am printing a report based on a date range. The user inputs the start and
> End date for the report (parameter query). How do I print the Start and End
> dates on a report header.
|
|
0
|
|
|
|
Reply
|
Utf
|
1/20/2010 2:15:01 PM
|
|
On Wed, 20 Jan 2010 06:15:01 -0800, Duane Hookom
<duanehookom@NO_SPAMhotmail.com> wrote:
>IMO, parameter prompts are never good user interface. There is no
>functionality or error checking. I much prefer using controls on forms for
>ALL user interaction.
>
>You can use the parameters in control sources as if they were fields. For
>instance:
> Control Source: ="From " & [Enter Start Date] & " To " & [Enter End Date]
>or
> Control Source: ="From " & Forms!frmRpt!txtStartDate & " To " &
>Forms!frmRpt!txtEndDate
I agree, forms are the way to go.
One way to have a report prompt the user for criteria before it runs
is to open a form from the report's Open event. Open the form in
Dialog mode so that the report waits for the form to be closed or
hidden before it proceeds. That way you can collect criteria from the
user and build a Where clause for the report. It also means that you
can call the report directly - you don't need to call it from a form.
And the selection form is reusable - it can be called from multiple
reports if they need the same criteria.
I've posted examples of this technique on our free J Street Downloads
page at http://ow.ly/M58Y
See "Report Selection Techniques".
Also, if you want to include printing the selection criteria in
English on the report, this example shows that also.
Armen Stein
Microsoft Access MVP
www.JStreetTech.com
|
|
0
|
|
|
|
Reply
|
Armen
|
1/26/2010 1:35:36 AM
|
|
|
2 Replies
1101 Views
(page loaded in 0.067 seconds)
Similiar Articles: print a date range from parameter query on a report header ...I am printing a report based on a date range. The user inputs the start and End date for the report (parameter query). How do I print the Start and ... Parameter Query in Report Header - microsoft.public.access.reports ...print a date range from parameter query on a report header ... I am printing a report based on a date range. The user inputs the start and End date for the report ... How do I show the parameter info on a report header? - microsoft ...print a date range from parameter query on a report header ... How do I show the parameter info on a report header? - microsoft ... For instance, if your parameter is a ... Report Header Parameter Max(Value) from Table... - microsoft ...print a date range from parameter query on a report header ... Parameter query in Access 2003 report - microsoft.public.access ... print a date range from parameter query ... 2 queries, a date range and a report?! - microsoft.public.access ...print a date range from parameter query on a report header ... I am printing a report based on a date range. The user inputs the start and End date for the report ... Parameter query in Access 2003 report - microsoft.public.access ...print a date range from parameter query on a report header ... Print Ms-Access Query Parameter values onto your report Microsoft ..... your parameter is a date, you can ... Parameter Pop Up Form with Date Range - microsoft.public.access ...print a date range from parameter query on a report header ... Pop up Form to set parameter of query to generate a report ... Set it's control source to: ="Report from ... Adding Date Range to Report - microsoft.public.access.reports ...print a date range from parameter query on a report header ... How can I add a date range ... print report ... parameter to the report how do I add that to the report at ... multiple criteria for parameter query that creates a report ...print a date range from parameter query on a report header ..... multiple reports if they need the same criteria ... report based on a parameter query. When you print ... Parameter Criteria Date Picker - microsoft.public.access.queries ...print a date range from parameter query on a report header ... Parameter Criteria Date ... Data Generate Date into an SSRS Report Header ... I have a report works fine. print a date range from parameter query on a report header ...I am printing a report based on a date range. The user inputs the start and End date for the report (parameter query). How do I print the Start and ... print a date range from parameter query on a report header? DataBaseI am printing a report based on a date range. The user inputs the start and End date for the report (parameter query). How do I print the Start and End da Print Parameter Date range on Report HeaderHi Freinds i have a report based on the query where the parameters are STAT_DATE Between Date()-7 And Date() I want the dates to appear in the report header. Crystal - printing date range of report in report header: Business ...... and end date in the query. I want ot be able to print on the report header ... user enter parameters ... Crystal, -, printing, date, range, of, report, in, report, header Microsoft Access tips: Limiting a Report to a Date RangeLimiting a Report to a Date Range. Here are ... Parameters from the Query menu, and declare two parameters of type Date ... boxes to the report header for displaying the date range. 7/28/2012 8:35:35 PM
|
|
|
|
|
|
|
|
|