Hello All,
Can we get to the Report Sorting and Grouping "properties" (I am not sure there are such properties) programatically in Access 2000 VBA? I don't see anything in report properties to indicate that I can. Basically, I would like to be able to say FieldOne grouping is either "ON" or "OFF" based on inputs from a form. I have searched the forums and the only matches seem to be unanswered posts with other folks trying to do what I'm trying to do.
My report has grouping and sorting on four fields. This report has evolved so that it's launched from two different Forms with differing grouping requirements. One form needs grouping on all four fields, the other form will only want to group on three. Input to the report is a very complex SQL multi-table query. Common sense says I should split the effort into two reports, but this will eventually force me to split a series of 11 reports into 22, so I avoid it if possible, prefer to keep one report with two capabilities. I know I can make the group header and footers not visible, which eliminates the totalling on the unwanted field, but the sorting being done on the field causes other control groups to appear mis-sorted. So it seems I need to be able to turn off the sorting programatically. Would the ORDER BY setting on the Report do this?
Hope the question is not too vague.
Thanks, xbigblue
Can we get to the Report Sorting and Grouping "properties" (I am not sure there are such properties) programatically in Access 2000 VBA? I don't see anything in report properties to indicate that I can. Basically, I would like to be able to say FieldOne grouping is either "ON" or "OFF" based on inputs from a form. I have searched the forums and the only matches seem to be unanswered posts with other folks trying to do what I'm trying to do.
My report has grouping and sorting on four fields. This report has evolved so that it's launched from two different Forms with differing grouping requirements. One form needs grouping on all four fields, the other form will only want to group on three. Input to the report is a very complex SQL multi-table query. Common sense says I should split the effort into two reports, but this will eventually force me to split a series of 11 reports into 22, so I avoid it if possible, prefer to keep one report with two capabilities. I know I can make the group header and footers not visible, which eliminates the totalling on the unwanted field, but the sorting being done on the field causes other control groups to appear mis-sorted. So it seems I need to be able to turn off the sorting programatically. Would the ORDER BY setting on the Report do this?
Hope the question is not too vague.
Thanks, xbigblue