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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
Conditional text in group footer
|
#3
|
|||
|
|||
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
|
|||
|
|||
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 |
#5
|
|||
|
|||
Conditional text in group footer
|
Thread Tools | |
Display Modes | |
|
|