L
lavanya
I am using ACCESS 2000. Sorry this is a long post.
I have a table TAB1 with the following kind of info
which is displayed as a REPORT.
Fld0 Fld1 fld2 fld3 fld4 fld5
---------------------------------------------------
AA 1 31 12 24 1/1/2004
AA 1 32 21 88 2/1/2004
AA 3 33 15 76 1/1/2004
MM 6 35 12 34 1/1/2004
XX 5 36 16 54 1/1/2004
XX 5 37 20 94 4/1/2004
I need to create a summary line for each grouping of
fld0,
Containing values for, sum of all fld3 , sum of fld4 in
that group, and wherever there are 2 non unique fld1
within the group of fld0, I have to select the row which
has the later date.
For the above info the summary line will occur after each
group of fld0 in the same REPORT as abive should look
like this.
Fld 0 sum of fld3 sum of fld4
-------------------------------------
AA 36(21+15) 164(88+76)
MM 12 34
XX 20 94
Can I achieve this only with VBA or will queries alone do
this work ?
How will I display this in a report that has its record
source set to the table TAB1.
I am relatively new to report writing and would
appreciate any help.
I have a table TAB1 with the following kind of info
which is displayed as a REPORT.
Fld0 Fld1 fld2 fld3 fld4 fld5
---------------------------------------------------
AA 1 31 12 24 1/1/2004
AA 1 32 21 88 2/1/2004
AA 3 33 15 76 1/1/2004
MM 6 35 12 34 1/1/2004
XX 5 36 16 54 1/1/2004
XX 5 37 20 94 4/1/2004
I need to create a summary line for each grouping of
fld0,
Containing values for, sum of all fld3 , sum of fld4 in
that group, and wherever there are 2 non unique fld1
within the group of fld0, I have to select the row which
has the later date.
For the above info the summary line will occur after each
group of fld0 in the same REPORT as abive should look
like this.
Fld 0 sum of fld3 sum of fld4
-------------------------------------
AA 36(21+15) 164(88+76)
MM 12 34
XX 20 94
Can I achieve this only with VBA or will queries alone do
this work ?
How will I display this in a report that has its record
source set to the table TAB1.
I am relatively new to report writing and would
appreciate any help.