I was trying to use this to get the Next record and compare to the current. In this case
if next(ItemCode) =ItemCode then ...
When I use it the report wont run and I get the below message. I am guessing this function is just not allowed within Sage 100…