I'm hoping someone can help me here.
I have reports that from criteria chosen on a form.
Report is grouped by 1)Sales Area 2) Sales Rep.
There is a group footer for both, with subtotals. There is also grand totals in the report footer. There are page breaks between the reps because they need to be on a page without others.
Unfortunately, if the user chooses to run for one rep, they get a rep total, AND an area total, AND a grand total....3 pages - with redundant Area and grand total pages.
I was thinking I could use the "on format" event for the report to check the form's combo boxes, and cancel formatting...but I can't seem to access the form's comboboxes through code.
For instance, if the combo box for the sales rep has data, the footers will be canceled.
If [Forms]![frmStartup]![cboSRSBP].Value Is Not Null Then....
I get an error saying variable not defined.
I'm sure this is something other people have run across - only needing grand totals if there is more than one group, etc.?
I have reports that from criteria chosen on a form.
Report is grouped by 1)Sales Area 2) Sales Rep.
There is a group footer for both, with subtotals. There is also grand totals in the report footer. There are page breaks between the reps because they need to be on a page without others.
Unfortunately, if the user chooses to run for one rep, they get a rep total, AND an area total, AND a grand total....3 pages - with redundant Area and grand total pages.
I was thinking I could use the "on format" event for the report to check the form's combo boxes, and cancel formatting...but I can't seem to access the form's comboboxes through code.
For instance, if the combo box for the sales rep has data, the footers will be canceled.
If [Forms]![frmStartup]![cboSRSBP].Value Is Not Null Then....
I get an error saying variable not defined.
I'm sure this is something other people have run across - only needing grand totals if there is more than one group, etc.?