Creating a sub report with variable number of fields to print

Tech-Archive recommends: Fix windows errors by optimizing your registry



Good morning

I would like to create a report that includes a subreport.

Situation:

- I have a Table T1
- I created a Xtab query 1 and a Xtab query 2 to extract informations from
the T1 table (sum of a field f1 by day of the week: Sun, Mon, Tue...)
- I created a selection query SQ1 that grabs all the data from Xtab queries
1 and 2 (sum of a field f2 by day of the week)
- Sub report is for data gathered in the selction query SQ1

My problem is that the number of fields returned by SQ1 may vary (1 week i
have totals for Mon thru Fri and another week I could have sums for Mon thru
Sun). I want to create a report that could handle all situations

I could I create a report that handles my problem?

Thanks for any guidance or help

MK


.



Relevant Pages

  • Re: Creating a sub report with variable number of fields to print
    ... Type the days of the week beside the Column Headings property, ... Crosstab query techniques - row totals, zeros, parameters, column ... I would like to create a report that includes a subreport. ... I created a selection query SQ1 that grabs all the data from Xtab ...
    (microsoft.public.access.reports)
  • Re: Screen Report differs from Print Report
    ... grabs a date, then on a Button Click event, the following line is ... DoCmd.OpenReport "Report X", acViewPreview ... The report correctly displays the passed Date value. ... to more than one newsgroup, ...
    (microsoft.public.access.formscoding)
  • Re: Screen Report differs from Print Report
    ... grabs a date, then on a Button Click event, the following line is ... DoCmd.OpenReport "Report X", acViewPreview ... The report correctly displays the passed Date value. ... to more than one newsgroup, ...
    (microsoft.public.access.reports)
  • Screen Report differs from Print Report
    ... I've created a form in Access 2003 that uses the Calendar Control. ... grabs a date, then on a Button Click event, the following line is ... DoCmd.OpenReport "Report X", acViewPreview ... The report correctly displays the passed Date value. ...
    (microsoft.public.access.forms)
  • Screen Report differs from Print Report
    ... I've created a form in Access 2003 that uses the Calendar Control. ... grabs a date, then on a Button Click event, the following line is ... DoCmd.OpenReport "Report X", acViewPreview ... The report correctly displays the passed Date value. ...
    (microsoft.public.access.reports)