ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Bad QueryTable Row Count (https://www.excelbanter.com/excel-programming/289335-bad-querytable-row-count.html)

igneramos[_3_]

Bad QueryTable Row Count
 
Is there a way to get the record count from a query attached to a query
table other than to look at querytable.resultrange.rows.count?

the reason I ask is because if the query returns 0 records,
querytable.resultrange.rows.count returns a value of 3. Obviously not
correct. Doesn't matter if the QueryTable is set to display field
names, either.


---
Message posted from http://www.ExcelForum.com/



All times are GMT +1. The time now is 11:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com