The recordset is returning -1 because of the type of recordset you are opening. Try changing the recordset to static and see if you get the correct recordcount.
A key set cursor will initially only return a key or keys to the row(s) of data. The data is fetched and the recordscount incremented, using the key, when you actually move through the recordset. As a result the inital recordcount does not exist and returns a -1.
Take Care,
zemp
"Show me someone with both feet on the ground and I will show you someone who can't put their pants on."
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.