I want to identify the position of a record within a recordset. When I say 1 record will be returned I mean I'm selecting a unique value from the recordset and I want to know the position of that record within the record set.
What I'm looking for is the Recordset.AbsolutePosition and I was wandering if there's a simple select or agregate function that would return this value.
No there isn't. Until you actually retrieve the records into a recordset there is no ordering in the "record number" sense. Relational databases do not guarantee any particular ordering of records without an "ORDER BY" clause and they don't use record numbers.
A recordset imposes a numbering via AbsolutePosition but that's unknown to the RDBMS or to SQL.
Golom I'm selecting the record from a recordset every record has a fixed position in that recordset on a form based on the recordset I'm selecting my record from there are navigation buttons and a record number box all I want to know is that where field x = y the record number is z.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.