Share via


Previous Function (Visual Studio Report Designer)

Returns the previous instance from the specified scope.

Previous(Expression)

Parameters

  • Expression
    (Variant or Binary) The expression on which to perform the aggregation. The expression cannot contain aggregate functions. Not supported in chart or matrix data regions.

Return Type

Returns a Variant or Binary.

The following code example provides the value for the field LineTotal in the previous row of a table or list data region. The value is Nothing for the first row.

Previous(Fields!LineTotal.Value)

See Also

Concepts

Using Expressions in a Report (Visual Studio Report Designer)
Adding Custom Code to a Report (Visual Studio Report Designer)
ReportViewer Controls (Visual Studio)
Built-in Functions for Reports (Visual Studio Report Designer)