In my Crystal V.10 report I need to access 6 consecutive rows in a table. There is a field in the table called firstrow which when set to 1 identifies the first row I need to access. I need pick up the value of a field called mydata from each of the 6 rows to use in formulas on the report.
I have inserted an SQL expression field into my report called firstdata which contains the following expression:-
SELECT mydata
FROM mytable
WHERE (firstrow = 1)
I can then reference this data by quoting {%firstdata} in the formulas I need to.
My question is how can now access the next 5 rows after the first row? Can I use an an SQL expression? The records after the first row are ordered chronologically with a date field if this helps.
I have inserted an SQL expression field into my report called firstdata which contains the following expression:-
SELECT mydata
FROM mytable
WHERE (firstrow = 1)
I can then reference this data by quoting {%firstdata} in the formulas I need to.
My question is how can now access the next 5 rows after the first row? Can I use an an SQL expression? The records after the first row are ordered chronologically with a date field if this helps.