I am trying to enter free txt and on change of order row number have the correct text under the correct row (I have grouped the rows). I have created a row number in an access table (no other tables connected at all)
I am not very up on formula and this thus far but it is not working, currently it is asking for a string required at the Else IF part. Could someone advise me please how the code should be please, I intend to have up to potentially 6 rows., thanks in advance
If {Table1.Row} = 1 then
WhilePrintingRecords;
StringVar Array Input := {?Pack};
NumberVar howmany:= count (Input);
Input [1] +
if howmany > 1 then ', ' + Input [2] +
if howmany > 2 then ', ' + Input [3] +
if howmany > 3 then ', ' + Input [4] +
if howmany > 4 then ', ' + Input [5] +
if howmany > 5 then ', ' + Input [6] +
if howmany > 6 then ', ' + Input [7] +
if howmany > 7 then ', ' + Input [8] +
if howmany > 8 then ', ' + Input [9]
ELSE IF {Table1.Row} = 2 then
WhilePrintingRecords;
StringVar Array Input := {?pack2};
NumberVar howmany:= count (Input);
Input [2] +
if howmany > 1 then ', ' + Input [10] +
if howmany > 2 then ', ' + Input [11] +
if howmany > 3 then ', ' + Input [12] +
if howmany > 4 then ', ' + Input [13] +
if howmany > 5 then ', ' + Input [14] +
if howmany > 6 then ', ' + Input [15] +
if howmany > 7 then ', ' + Input [16] +
if howmany > 8 then ', ' + Input [17];
I am not very up on formula and this thus far but it is not working, currently it is asking for a string required at the Else IF part. Could someone advise me please how the code should be please, I intend to have up to potentially 6 rows., thanks in advance
If {Table1.Row} = 1 then
WhilePrintingRecords;
StringVar Array Input := {?Pack};
NumberVar howmany:= count (Input);
Input [1] +
if howmany > 1 then ', ' + Input [2] +
if howmany > 2 then ', ' + Input [3] +
if howmany > 3 then ', ' + Input [4] +
if howmany > 4 then ', ' + Input [5] +
if howmany > 5 then ', ' + Input [6] +
if howmany > 6 then ', ' + Input [7] +
if howmany > 7 then ', ' + Input [8] +
if howmany > 8 then ', ' + Input [9]
ELSE IF {Table1.Row} = 2 then
WhilePrintingRecords;
StringVar Array Input := {?pack2};
NumberVar howmany:= count (Input);
Input [2] +
if howmany > 1 then ', ' + Input [10] +
if howmany > 2 then ', ' + Input [11] +
if howmany > 3 then ', ' + Input [12] +
if howmany > 4 then ', ' + Input [13] +
if howmany > 5 then ', ' + Input [14] +
if howmany > 6 then ', ' + Input [15] +
if howmany > 7 then ', ' + Input [16] +
if howmany > 8 then ', ' + Input [17];