G
greg d. via AccessMonster.com
hello. i'm self-taught with vba which means i may not make this very clear
so please bear with me...
i have a report where the grouping is by salesperson (header section
invisible, footer visible) and where the page header and page footer are both
visible. in the salesperson's footer section, i have a user-defined function
that creates a running total of certain values in the detail section for the
report (basically totalling up different parts of each sale for each
salesperson). the variables i'm using are public (i think -- they're at the
top of the vba page which is what i think makes them public).
the problem is i tried to call a function to clear them at the page footer
but it's not working... here's my line of code for this:
If Me.section("Detail").WillContinue = True Then Call ClearVars
the problem is that if the detail section is long enough to make a
salesperson's report move on to two pages, it resets the variables for the
2nd page.
what i would really need is an on-change event for the section but they
didn't ask me what i thought when they wrote access. i'm using 2007, if it
matters. thanks for the help.
greg
so please bear with me...
i have a report where the grouping is by salesperson (header section
invisible, footer visible) and where the page header and page footer are both
visible. in the salesperson's footer section, i have a user-defined function
that creates a running total of certain values in the detail section for the
report (basically totalling up different parts of each sale for each
salesperson). the variables i'm using are public (i think -- they're at the
top of the vba page which is what i think makes them public).
the problem is i tried to call a function to clear them at the page footer
but it's not working... here's my line of code for this:
If Me.section("Detail").WillContinue = True Then Call ClearVars
the problem is that if the detail section is long enough to make a
salesperson's report move on to two pages, it resets the variables for the
2nd page.
what i would really need is an on-change event for the section but they
didn't ask me what i thought when they wrote access. i'm using 2007, if it
matters. thanks for the help.
greg