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  

GroupHeader Repeat



 
 
Thread Tools Display Modes
  #1  
Old May 10th, 2007, 12:12 AM posted to microsoft.public.access.reports
Lamar
external usenet poster
 
Posts: 60
Default GroupHeader Repeat

See below. I got the answer to my original question. But when I use
"Payment History" report as a subreport then it does not work ("txtName"
starts to repeat). I coded the Main Report the same but "txtName" still
repeats.

Any help is appreciated.

Lamar wrote:


I have report named "PaymentHistory". This report has a section
"PaymentHeader" where Repeat property is set to "Yes". So this group header
repeats on the next page or column.

My problem I have a text box named "txtName" in this group header but I do
not want the txtName to repeat. txtName is what the user inputs. txtName
needs to be in the group header the first time but I want to make invisible
if the group header repeats.



The trick is to determine the first from subsequent
instances of the header. This can be done by adding a
(hidden?) text box (named txtDtlCnt) to the detail section,
set its control source to =1 and RunningSum to Over Group.

Then, in the header section format event:
Me.txtName/Visible = (Me.txtDtlCnt = 1)

--
Marsh
MVP [MS Access]


 




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 03:33 AM.


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