Obtain the record before last one

JanireJanire Member Posts: 31
How can I get the record that is before the last one? I am trying with record.FINDLAST and then I like to get Next(-1) or something like this, but I don't know how.
Thank's

Comments

  • DaveTDaveT Member Posts: 1,039
    Hi,

    You have answered it yourself :D Next(-1) will work. :wink:
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • SogSog Member Posts: 1,023
    You should use find(+), findlast/findfirst is used for single records
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • garakgarak Member Posts: 3,263
    don't use findfirst / findlast in a loop and also not findset in a loop with next(-1). for this use find('+')
    Do you make it right, it works too!
  • idiotidiot Member Posts: 651
    FINDSET can be used with ASCENDING(FALSE) & a counter where counter = 2
    NAV - Norton Anti Virus

    ERP Consultant (not just Navision) & Navision challenger
Sign In or Register to comment.