Hi,
I am using CR10 against an MS 2010 Access Database. This is a project database and for each project number in the database, the project officer will enter remarks that are stored in a Remarks table. The relationship is a one to many between the project number and the associated remarks. As well, each project officer has many different project numbers.
What I am trying to do is find, for each project officer, the one remark regardless of project number, that is greatest in length and then print only that remark and project number for that project officer. The report is grouped by project officer.
Since the remarks field is a string, I created a formula, @RemarksLen, to determine the length of each remark in the database:
Length ({Remarks})
I then created the following formula to capture the largest remarks length per officer and placed this formula in the Group Header:
Maximum ({@RemarksLen},{Project.Officer})
This does display the correct figure. What I can't figure out how to do is get the specific remark associated with this max length to display. When I place the remarks field from the table in the group header, it is not the correct remark. I was wondering if a group selection formula involving the Maximum command might work, but the command parameters don't seem to fit.
Thanks, Rooski
I am using CR10 against an MS 2010 Access Database. This is a project database and for each project number in the database, the project officer will enter remarks that are stored in a Remarks table. The relationship is a one to many between the project number and the associated remarks. As well, each project officer has many different project numbers.
What I am trying to do is find, for each project officer, the one remark regardless of project number, that is greatest in length and then print only that remark and project number for that project officer. The report is grouped by project officer.
Since the remarks field is a string, I created a formula, @RemarksLen, to determine the length of each remark in the database:
Length ({Remarks})
I then created the following formula to capture the largest remarks length per officer and placed this formula in the Group Header:
Maximum ({@RemarksLen},{Project.Officer})
This does display the correct figure. What I can't figure out how to do is get the specific remark associated with this max length to display. When I place the remarks field from the table in the group header, it is not the correct remark. I was wondering if a group selection formula involving the Maximum command might work, but the command parameters don't seem to fit.
Thanks, Rooski