A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Displaying date parameter on a multiple page report



 
 
Thread Tools Display Modes
  #1  
Old March 24th, 2010, 01:34 PM posted to microsoft.public.access.reports
ecwhite
external usenet poster
 
Posts: 17
Default Displaying date parameter on a multiple page report

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
  #2  
Old March 24th, 2010, 01:52 PM posted to microsoft.public.access.reports
Allen Browne
external usenet poster
 
Posts: 11,706
Default Displaying date parameter on a multiple page report

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" wrote in message
...
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


  #3  
Old March 24th, 2010, 04:08 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default Displaying date parameter on a multiple page report

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.)

  #4  
Old March 24th, 2010, 04:13 PM posted to microsoft.public.access.reports
ecwhite
external usenet poster
 
Posts: 17
Default Displaying date parameter on a multiple page report

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" wrote in message
...
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


.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.