HOW TO GET NEXT RECORD IN SSRS

Manoj Pandey

Total Post:26

Points:188
Posted by  Manoj Pandey
C#
 989  View(s)
Ratings:
Rate this:
I am creating a report Which Show Previous,Current and Next id on Report. We can get Previous id via Preveious(Fields!Id.Value) but how can get next Id. Here is no function as Crystal report Next(Fields!ID.value) in ssrs
 
  1. Manoj Pandey

    Post:26

    Points:188
    Re: How to get Next Record in SSRS

    Finally I have found solution

    First you have need add Rownumber in query.

    Now add below code in Next id textbox expression-

     =Lookup(Fields!Row.Value+1,Fields!Row.Value,Fields!ID.Value,"YourDatSetName")

    Now result is -:

    Note : Don't use RowNumber(FieldName, "YourDatasetName") instead of Row.

    Thanks






      Modified On Sep-13-2016 07:07:12 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!