Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting the first record of a record set

Status
Not open for further replies.

clydejones

Programmer
Jan 11, 2001
153
US
Hello,
Is there a way to show only the first or last record of a recordset?

Thanks,
Clyde
 
If you display a record in the report header, the record is the "first" record. The report footer displays the "last" record.
So, if you build your entire report in the report header or footer, it will display just one record. Malcolm
 
clydejones: As an alternative to MalcolmW's correct suggestion, if you merely want to display the first or last record contents together with other information you could create a formula using OnFirstRecord or OnLastRecord functions as e.g.

stringvar first_employee:= If OnFirstRecord then {Employee.FirstName} else first_employee

This would have the effect of making the first name available throughout your report David C. Monks
david.monks@chase-international.com
Accredited Seagate Enterprise Partner
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top