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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using next and previous and SECOND

Status
Not open for further replies.

GaryWilsonCPA

Technical User
Jul 19, 2000
253
US
I am using next and previous to look up first and last records in a file by patient id.

ClientID = Next (clientid) "gets me the last record in file"

ClientID = Previous (clientid) "gets me the first record in file"

How can i get the second record in a file???



 
In Crystal 8.5, you could group by patient id, and then do a running total for records within the group. Check when the count is two.

Madawc Williams
East Anglia, Great Britain
 
Gary,

Please clarify. Next & Previous can only get the value in the next/previous record, not the first and last record.

If you explain the data structure with a bit more detail and the desired report output it would be easier to suggest a solution.

Cheers,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top