Result.Max (gb.db2)

Property Read Max As Integer

Returns Result.Count - 1 (and so it returns -1 if there is no record).