Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why doesn DGGetRecordCount() return an accurate record count in some cases?

accurate cases record Return
0
Posted

Why doesn DGGetRecordCount() return an accurate record count in some cases?

0

DGGetRecordCount() returns the number of the last record that has been accessed in the recordset. The database engine does not actually know how many records are in a recordset until they have all been accessed, because for large databases, it could be very time consuming to count the records. If you want to insure that the record count is accurate, call DGMoveLast() before calling DGGetRecordCount. This insures that the last record has been accessed and the record count is accurate.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123