PC Review


Reply
Thread Tools Rate Thread

Displaying date parameter on a multiple page report

 
 
ecwhite
Guest
Posts: n/a
 
      24th Mar 2010
Hello,

MS Access 2003

I have a textbox on the page header of a report that displays review date
which is the users date range parameter. I am using a pop form in collecting
the date range which I pass to the query. I close the pop form when the
report opens so that user can only see the repot once it opens.

The report can be one page or multiple pages depending on the date range the
user put in. I want to desplay the date range on all the multiple pages.

This works on the first page only. When the report is multiple pages it says
error in the textbox for displaying date on page 2.

How do I make it display the date range in all the multiple pages.

="" & Forms!Frm_report_criteria!txt_begin_Date & " Through " &
Forms!Frm_report_criteria!txt_End_Date
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      24th Mar 2010
The simplest solution is to leave the form open.

If you can't do that, right-click the text box in the Page Header and Change
To | Label. Then add code in the Open event of the report to assign the
Caption of a label, before you close the form.

(You can assign a label's caption in Report_Open, but you can't assign a
value to a text box.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"ecwhite" <(E-Mail Removed)> wrote in message
news:32BA3685-E2CD-462A-88AB-(E-Mail Removed)...
> Hello,
>
> MS Access 2003
>
> I have a textbox on the page header of a report that displays review date
> which is the users date range parameter. I am using a pop form in
> collecting
> the date range which I pass to the query. I close the pop form when the
> report opens so that user can only see the repot once it opens.
>
> The report can be one page or multiple pages depending on the date range
> the
> user put in. I want to desplay the date range on all the multiple pages.
>
> This works on the first page only. When the report is multiple pages it
> says
> error in the textbox for displaying date on page 2.
>
> How do I make it display the date range in all the multiple pages.
>
> ="" & Forms!Frm_report_criteria!txt_begin_Date & " Through " &
> Forms!Frm_report_criteria!txt_End_Date


 
Reply With Quote
 
John Spencer
Guest
Posts: n/a
 
      24th Mar 2010
You can leave the form open, but change its visible property to NO in the code
that runs the report.

You can close the form or restore its visibility in the close event of the report.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Allen Browne wrote:
> The simplest solution is to leave the form open.
>
> If you can't do that, right-click the text box in the Page Header and
> Change To | Label. Then add code in the Open event of the report to
> assign the Caption of a label, before you close the form.
>
> (You can assign a label's caption in Report_Open, but you can't assign a
> value to a text box.)
>

 
Reply With Quote
 
ecwhite
Guest
Posts: n/a
 
      24th Mar 2010
Thanks a lot. I used the label and it resolved it.

"Allen Browne" wrote:

> The simplest solution is to leave the form open.
>
> If you can't do that, right-click the text box in the Page Header and Change
> To | Label. Then add code in the Open event of the report to assign the
> Caption of a label, before you close the form.
>
> (You can assign a label's caption in Report_Open, but you can't assign a
> value to a text box.)
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
>
> "ecwhite" <(E-Mail Removed)> wrote in message
> news:32BA3685-E2CD-462A-88AB-(E-Mail Removed)...
> > Hello,
> >
> > MS Access 2003
> >
> > I have a textbox on the page header of a report that displays review date
> > which is the users date range parameter. I am using a pop form in
> > collecting
> > the date range which I pass to the query. I close the pop form when the
> > report opens so that user can only see the repot once it opens.
> >
> > The report can be one page or multiple pages depending on the date range
> > the
> > user put in. I want to desplay the date range on all the multiple pages.
> >
> > This works on the first page only. When the report is multiple pages it
> > says
> > error in the textbox for displaying date on page 2.
> >
> > How do I make it display the date range in all the multiple pages.
> >
> > ="" & Forms!Frm_report_criteria!txt_begin_Date & " Through " &
> > Forms!Frm_report_criteria!txt_End_Date

>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Date on every Report Page =?Utf-8?B?YmVja3kyNTA=?= Microsoft Access Reports 2 18th Jan 2007 01:10 PM
Displaying Parameter Values In Report =?Utf-8?B?QmVsbA==?= Microsoft Access Reports 7 18th Aug 2005 03:56 PM
Error Displaying Parameter in a chart in a report. =?Utf-8?B?SmFtZXMu?= Microsoft Access Reports 1 2nd Aug 2005 05:40 PM
Displaying Parameter Input on Report Marv Trott Microsoft Access Reports 1 17th Apr 2005 04:48 PM
Displaying the date range parameter =?Utf-8?B?TWFzc3k=?= Microsoft Dot NET 0 19th Feb 2004 09:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:22 AM.