Result.Max (gb.db)

Property Read Max As Integer

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