Reference the Date in report footer.

Hi Folks,

I have a report which the record source is a query name: Query3 and in
my Query3 I have this parameter "between [Start Date] And [EndDate]".
Therefore, when I open my report, it will ask for a Start Date And an
EndDate.

Now I will like to have this date in the report footer of my acess
report.

Can someone tell me how can I do this?

Thanking all in advance for your help and continuous access support.
Fred's
frederic10_mess [ Di, 15 Januar 2008 21:59 ] [ ID #1908321 ]

Re: Reference the Date in report footer.

Much neater to open a date input form on the OnOpen Event of the report. The
date input form can usefully have a few buttons on it like Now (EndDate),
begining of the year (StartDate) etc as well as a StartDate and EndDate that
optionally can be filled in. Then the report header /footer can load the
information from the form. The other advantage is that you can check whether
sensible dates have been entered and that the format is correct with '#'
marks etc

Phil

"Fred's" <frederic10_mess [at] hotmail.com> wrote in message
news:faff7aa3-8376-4726-aeee-1e391bc1f7fe [at] e23g2000prf.google groups.com...
> Hi Folks,
>
> I have a report which the record source is a query name: Query3 and in
> my Query3 I have this parameter "between [Start Date] And [EndDate]".
> Therefore, when I open my report, it will ask for a Start Date And an
> EndDate.
>
> Now I will like to have this date in the report footer of my acess
> report.
>
> Can someone tell me how can I do this?
>
> Thanking all in advance for your help and continuous access support.
> Fred's
Phil Stanton [ Di, 15 Januar 2008 22:43 ] [ ID #1908325 ]

Re: Reference the Date in report footer.

On Tue, 15 Jan 2008 12:59:06 -0800 (PST), Fred's wrote:

> Hi Folks,
>
> I have a report which the record source is a query name: Query3 and in
> my Query3 I have this parameter "between [Start Date] And [EndDate]".
> Therefore, when I open my report, it will ask for a Start Date And an
> EndDate.
>
> Now I will like to have this date in the report footer of my acess
> report.
>
> Can someone tell me how can I do this?
>
> Thanking all in advance for your help and continuous access support.
> Fred's

Usually this is done on the report header, but you can add an unbound
text control to the report footer.

Set it's control source to:
="For sales between " & [Start Date] & " and " & [End Date]

The text within the brackets must be identical to the bracketed text
used in the query criteria.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
fredg [ Di, 15 Januar 2008 23:10 ] [ ID #1908331 ]

Re: Reference the Date in report footer.

On Jan 15, 5:10=A0pm, fredg <fgutk... [at] example.invalid> wrote:
> On Tue, 15 Jan 2008 12:59:06 -0800 (PST), Fred's wrote:
> > Hi Folks,
>
> > I have a report which the record source is a query name: Query3 and in
> > my Query3 I have this parameter "between [Start Date] And [EndDate]".
> > Therefore, when I open my report, it will ask for a =A0Start Date And an=

> > EndDate.
>
> > Now I will like to have this date in the report footer of my acess
> > report.
>
> > Can someone tell me how can I do this?
>
> > Thanking all in advance for your help and continuous access support.
> > Fred's
>
> Usually this is done on the report header, but you can add an unbound
> text control to the report footer.
>
> Set it's control source to:
> =3D"For sales between " & [Start Date] & " and " & [End Date]
>
> The text within the brackets must be identical to the bracketed text
> used in the query criteria.
>
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail

Thank you, but this is not what I'm searching for.

This is my needs: The date that I enter the parameter need to appear
on the report footer.
frederic10_mess [ Mi, 16 Januar 2008 01:10 ] [ ID #1909488 ]

Re: Reference the Date in report footer.

Fred's wrote:
> On Jan 15, 5:10 pm, fredg <fgutk... [at] example.invalid> wrote:
>> On Tue, 15 Jan 2008 12:59:06 -0800 (PST), Fred's wrote:
>>> Hi Folks,
>>> I have a report which the record source is a query name: Query3 and in
>>> my Query3 I have this parameter "between [Start Date] And [EndDate]".
>>> Therefore, when I open my report, it will ask for a Start Date And an
>>> EndDate.
>>> Now I will like to have this date in the report footer of my acess
>>> report.
>>> Can someone tell me how can I do this?
>>> Thanking all in advance for your help and continuous access support.
>>> Fred's
>> Usually this is done on the report header, but you can add an unbound
>> text control to the report footer.
>>
>> Set it's control source to:
>> ="For sales between " & [Start Date] & " and " & [End Date]
>>
>> The text within the brackets must be identical to the bracketed text
>> used in the query criteria.
>>
>> --
>> Fred
>> Please respond only to this newsgroup.
>> I do not reply to personal e-mail
>
> Thank you, but this is not what I'm searching for.
>
> This is my needs: The date that I enter the parameter need to appear
> on the report footer.

What you should do is create a form and add two text fields, one for the
Start Date and the other for the End Date. Let's say the form is named:
DateRange and the two text fields you create are named: StartDate and
EndDate. Then, revise your query, replacing the parameter you now have
with this: between [Forms]![DateRange]![StartDate] And
[Forms]![DateRange]![EndDate]

Now, when your query runs, the DateRange Form will open to accept the
StartDate and EndDate parameters which will be passed to StartDate and
EndDate which you can then reference in your report as
[Forms]![DateRange]![StartDate] and [Forms]![DateRange]![EndDate]. I
believe this will work.
Don Calloway [ Mi, 16 Januar 2008 03:30 ] [ ID #1909493 ]

Re: Reference the Date in report footer.

donald wrote:
> Fred's wrote:
>> On Jan 15, 5:10 pm, fredg <fgutk... [at] example.invalid> wrote:
>>> On Tue, 15 Jan 2008 12:59:06 -0800 (PST), Fred's wrote:
>>>> Hi Folks,
>>>> I have a report which the record source is a query name: Query3 and in
>>>> my Query3 I have this parameter "between [Start Date] And [EndDate]".
>>>> Therefore, when I open my report, it will ask for a Start Date And an
>>>> EndDate.
>>>> Now I will like to have this date in the report footer of my acess
>>>> report.
>>>> Can someone tell me how can I do this?
>>>> Thanking all in advance for your help and continuous access support.
>>>> Fred's
>>> Usually this is done on the report header, but you can add an unbound
>>> text control to the report footer.
>>>
>>> Set it's control source to:
>>> ="For sales between " & [Start Date] & " and " & [End Date]
>>>
>>> The text within the brackets must be identical to the bracketed text
>>> used in the query criteria.
>>>
>>> --
>>> Fred
>>> Please respond only to this newsgroup.
>>> I do not reply to personal e-mail
>>
>> Thank you, but this is not what I'm searching for.
>>
>> This is my needs: The date that I enter the parameter need to appear
>> on the report footer.
>
> What you should do is create a form and add two text fields, one for the
> Start Date and the other for the End Date. Let's say the form is named:
> DateRange and the two text fields you create are named: StartDate and
> EndDate. Then, revise your query, replacing the parameter you now have
> with this: between [Forms]![DateRange]![StartDate] And
> [Forms]![DateRange]![EndDate]
>
> Now, when your query runs, the DateRange Form will open to accept the
> StartDate and EndDate parameters which will be passed to StartDate and
> EndDate which you can then reference in your report as
> [Forms]![DateRange]![StartDate] and [Forms]![DateRange]![EndDate]. I
> believe this will work.

I should have added that you will need a button on the DateRange form
for executing the query once you have entered the dates in the two text
fields.
Don Calloway [ Mi, 16 Januar 2008 12:19 ] [ ID #1909513 ]
Datenbanken » comp.databases.ms-access » Reference the Date in report footer.

Vorheriges Thema: List my source code
Nächstes Thema: Help with pay