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  

Conditional text in group footer



 
 
Thread Tools Display Modes
  #1  
Old July 21st, 2007, 05:46 PM posted to microsoft.public.access.reports
[email protected]
external usenet poster
 
Posts: 3
Default Conditional text in group footer

I am new to Access and am trying to figure out how to set a text
control in a group footer to "A", then change it to "B" if a
condition is met somewhere in the details of the group.
The data would look like:
Group1, Group2, Group3, "A"
Group1, Group2, Group3, "B"
Group1, Group2, Group3a, "A"
Group1, Group2, Group3a, "C"

In the footer of Group3 I have a text control, when I hit the detail
record = "B" I set the control to "B". Where I have trouble is where
do I reset the text control back to "A" at the start of the next
group, so that when the next group prints the text control displays
"A" since there was no "B". I assume it is somewhere in the non-
visible header for the 3rd group, but I have no controls in there.

Thanks,
Mark

  #3  
Old July 21st, 2007, 07:29 PM posted to microsoft.public.access.reports
[email protected]
external usenet poster
 
Posts: 3
Default Conditional text in group footer

On Jul 21, 11:01 am, Marshall Barton wrote:
wrote:
I am new to Access and am trying to figure out how to set a text
control in a group footer to "A", then change it to "B" if a
condition is met somewhere in the details of the group.
The data would look like:
Group1, Group2, Group3, "A"
Group1, Group2, Group3, "B"
Group1, Group2, Group3a, "A"
Group1, Group2, Group3a, "C"


In the footer of Group3 I have a text control, when I hit the detail
record = "B" I set the control to "B". Where I have trouble is where
do I reset the text control back to "A" at the start of the next
group, so that when the next group prints the text control displays
"A" since there was no "B". I assume it is somewhere in the non-
visible header for the 3rd group, but I have no controls in there.


You can use the group header section's Format event to set
it. If you don't have the header section, create it and
make it invisible.

--
Marsh
MVP [MS Access]


Thanks, I thought it might be there, but I don't understand the
dialog. If I select [Event Procedure] it never prompts me to enter
the code. If I press the "..." next to the drop down box, it brings
up some windows that appear to be read only, I can't type anything in
them. If I try to change the view, it says a macro is running. I
think my problems are more with the Access interface on how to get
things done than the coding itself. It is like a need a step by step
on Press This, Select This, ok this is where the code goes.

Mark

  #4  
Old July 21st, 2007, 08:40 PM posted to microsoft.public.access.reports
[email protected]
external usenet poster
 
Posts: 3
Default Conditional text in group footer

On Jul 21, 11:29 am, wrote:
On Jul 21, 11:01 am, Marshall Barton wrote:



wrote:
I am new to Access and am trying to figure out how to set a text
control in a group footer to "A", then change it to "B" if a
condition is met somewhere in the details of the group.
The data would look like:
Group1, Group2, Group3, "A"
Group1, Group2, Group3, "B"
Group1, Group2, Group3a, "A"
Group1, Group2, Group3a, "C"


In the footer of Group3 I have a text control, when I hit the detail
record = "B" I set the control to "B". Where I have trouble is where
do I reset the text control back to "A" at the start of the next
group, so that when the next group prints the text control displays
"A" since there was no "B". I assume it is somewhere in the non-
visible header for the 3rd group, but I have no controls in there.


You can use the group header section's Format event to set
it. If you don't have the header section, create it and
make it invisible.


--
Marsh
MVP [MS Access]


Thanks, I thought it might be there, but I don't understand the
dialog. If I select [Event Procedure] it never prompts me to enter
the code. If I press the "..." next to the drop down box, it brings
up some windows that appear to be read only, I can't type anything in
them. If I try to change the view, it says a macro is running. I
think my problems are more with the Access interface on how to get
things done than the coding itself. It is like a need a step by step
on Press This, Select This, ok this is where the code goes.

Mark



I think my question is even simpler than this all sounds. How do I
reference a text box value in GroupFooter2 from a procedure in
GroupHeader2? The text box is called IsComp, and if I try IsComp =
'No" I get a macro not found error.

-Mark

 




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 10:57 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.