<P>To all,</P>
<P>I have a access query which will contain a range of dates and a shift number (1,2,3), which will normally have data similar to the following:</P>
<P>Date Shift Quantity</P>
<P>26/08/03 1 34</P>
<P>26/08/03 1 32</P>
<P>26/08/03 2 12</P>
<P>26/08/03 3 56</P>
<P>26/08/03 3 43</P>
<P>I need to export this query out to Excel but stop after each shift number finishes and add sub-totals into the Excel sheet like so :</P>
<P>Date Shift Quantity</P>
<P>26/08/03 1 34</P>
<P>26/08/03 1 32</P>
<P> Sub-Total Qty 66</P>
<P>26/08/03 2 12</P>
<P> Sub-Total Qty 12</P>
<P>26/08/03 3 56</P>
<P>26/08/03 3 43</P>
<P> Sub-Total Qty 99</P>
<P>Anyone know a way that this can be achieved........</P>
<P>Thanks in advance for any help.....</P>
<P> </P>
<P>Paul </P>