If I am opening a table, the recordcount property should always be correct right?
If I am opening a query, it will only be accurate if I use a cursor type like dbOpenSnapshot... not dbOpenDynamic correct?
Would it be better if I have an open dbOpenDynamic recordset to do a .MoveLast and then get the recordcount property or setup a new recordset and open it using dbOpenSnapshot? I've actually seen recordsets where I do a .MoveLast and the recordcount is still not correct so perhaps that doesn't even work all the time!
Also, is ADO any different in this respect? Is it easier to get a record count?
I can't use an SQL query with COUNT() in it because these are dynamically built queries and I would have to write code to alter the select statement and that just seems impossible to write a function for.
If I am opening a query, it will only be accurate if I use a cursor type like dbOpenSnapshot... not dbOpenDynamic correct?
Would it be better if I have an open dbOpenDynamic recordset to do a .MoveLast and then get the recordcount property or setup a new recordset and open it using dbOpenSnapshot? I've actually seen recordsets where I do a .MoveLast and the recordcount is still not correct so perhaps that doesn't even work all the time!
Also, is ADO any different in this respect? Is it easier to get a record count?
I can't use an SQL query with COUNT() in it because these are dynamically built queries and I would have to write code to alter the select statement and that just seems impossible to write a function for.