PC Review


Reply
Thread Tools Rate Thread

Case Approach Not Consistant

 
 
briank
Guest
Posts: n/a
 
      9th Apr 2010
I am trying to get a text box in my footer (Me.TextFooterNote) to show
visible if a text box calculation in my detail section (Me.TextCalc)=1.
Depending on the parameters, there could be one record or 30 records. Either
way, if just one text box calculation equals 1 then I want the footer text
box to be visible. When I run the report with one record in the output and
the detail text box = 1 then the footer is visible which is what I want. But
when the parameters change and there are several detail text boxes (some with
1 some with 0) then the footer is not visible which I don't want.

' Select Case Me.TextCalc
' Case 1
' Me.TextFooterNote.Visible = True
' Case 0
' Me.TextFooterNote.Visible = False
' End Select

 
Reply With Quote
 
 
 
 
John Spencer
Guest
Posts: n/a
 
      9th Apr 2010
So you want TextFooterNote to be visible if TextCalc = 1 for ANY detail record
in the section?

If you don't need to show textCalc then I would make it a running sum over
group and then use

If Me.txtCalc > 0 then
Me.txtFooterNote.Visible = True
ELSE
Me.txtFooterNote.Visible = False
END IF

OR if you can just sum the calculation in a (not visible) control in the
footer and use that value to control the visibility of the txtFooterNote
control. Since you have not shared the calculation I don't know if this is
feasible, but it should be.

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

briank wrote:
> I am trying to get a text box in my footer (Me.TextFooterNote) to show
> visible if a text box calculation in my detail section (Me.TextCalc)=1.
> Depending on the parameters, there could be one record or 30 records. Either
> way, if just one text box calculation equals 1 then I want the footer text
> box to be visible. When I run the report with one record in the output and
> the detail text box = 1 then the footer is visible which is what I want. But
> when the parameters change and there are several detail text boxes (some with
> 1 some with 0) then the footer is not visible which I don't want.
>
> ' Select Case Me.TextCalc
> ' Case 1
> ' Me.TextFooterNote.Visible = True
> ' Case 0
> ' Me.TextFooterNote.Visible = False
> ' End Select
>

 
Reply With Quote
 
briank
Guest
Posts: n/a
 
      9th Apr 2010
John, Your suggestion to make it a running sum made the difference. I can't
tell you how much time I spent on this with out thinking of that solution.
Thx.


"John Spencer" wrote:

> So you want TextFooterNote to be visible if TextCalc = 1 for ANY detail record
> in the section?
>
> If you don't need to show textCalc then I would make it a running sum over
> group and then use
>
> If Me.txtCalc > 0 then
> Me.txtFooterNote.Visible = True
> ELSE
> Me.txtFooterNote.Visible = False
> END IF
>
> OR if you can just sum the calculation in a (not visible) control in the
> footer and use that value to control the visibility of the txtFooterNote
> control. Since you have not shared the calculation I don't know if this is
> feasible, but it should be.
>
> John Spencer
> Access MVP 2002-2005, 2007-2010
> The Hilltop Institute
> University of Maryland Baltimore County
>
> briank wrote:
> > I am trying to get a text box in my footer (Me.TextFooterNote) to show
> > visible if a text box calculation in my detail section (Me.TextCalc)=1.
> > Depending on the parameters, there could be one record or 30 records. Either
> > way, if just one text box calculation equals 1 then I want the footer text
> > box to be visible. When I run the report with one record in the output and
> > the detail text box = 1 then the footer is visible which is what I want. But
> > when the parameters change and there are several detail text boxes (some with
> > 1 some with 0) then the footer is not visible which I don't want.
> >
> > ' Select Case Me.TextCalc
> > ' Case 1
> > ' Me.TextFooterNote.Visible = True
> > ' Case 0
> > ' Me.TextFooterNote.Visible = False
> > ' End Select
> >

> .
>

 
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
consistant app crash Jim D Microsoft Outlook Discussion 1 11th May 2009 03:41 AM
Can't find short cut for changing case ... upper case .... lower case JERRY Microsoft Word New Users 7 23rd Aug 2007 05:29 PM
reminders not consistant =?Utf-8?B?U3RlbGxpcg==?= Microsoft Outlook 0 1st Dec 2004 04:39 AM
Need consistant session ID David Angell Microsoft Windows 2000 Terminal Server Applications 1 25th Dec 2003 04:32 PM
Need consistant session ID David Angell Microsoft Windows 2000 Terminal Server Clients 0 23rd Dec 2003 09:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:27 AM.