J
JD
I am trying to group on detail record counts that are multiplies of 5. I
want to print a header line and then 5 records, a header line and then 5
records, etc. I added a text box (name = txtLineNo) to the detail line with
a control source = 1 and the property of an over all running sum. I have a
second text box (name = txtGroupNo) with a control source =(txtLineNo+4)\5
and the value of that control for the first 5 records = 1 and for the second
5 records = 2. So I have been trying every way I can think of to reference
the txtGroupNo in the group on expression - without any success.
I know I can change my query to include those txtGroupNo values and the
group on will work fine when set to a control source field. However, I have
to believe there is a way for the group on to use an expression to reference
an unbound control in the detail line. But I am lost for a next step to try.
Any suggestions would be greatly appreciated.
Thank you very much.
--jd
p.s. I tried to count records in a group-on expression but got an error
about not being able to use aggregate functions in the expression.
want to print a header line and then 5 records, a header line and then 5
records, etc. I added a text box (name = txtLineNo) to the detail line with
a control source = 1 and the property of an over all running sum. I have a
second text box (name = txtGroupNo) with a control source =(txtLineNo+4)\5
and the value of that control for the first 5 records = 1 and for the second
5 records = 2. So I have been trying every way I can think of to reference
the txtGroupNo in the group on expression - without any success.
I know I can change my query to include those txtGroupNo values and the
group on will work fine when set to a control source field. However, I have
to believe there is a way for the group on to use an expression to reference
an unbound control in the detail line. But I am lost for a next step to try.
Any suggestions would be greatly appreciated.
Thank you very much.
--jd
p.s. I tried to count records in a group-on expression but got an error
about not being able to use aggregate functions in the expression.