I have a requirement that I’m sure has a simple solution but it seems to be impossible to find an answer. I’m running a BASIC macro in Base and all I want to know is how many rows are selected when I do this:
objSelStatement = ThisDatabaseDocument.CurrentController.ActiveConnection.CreateStatement()
objSelect = objSelStatement.ExecuteQuery(“SELECT * FROM tblCatalog”)
I’m able to loop through all the records in objSelect but I can’t figure out how to count them in advance. I’m hoping it’s something simple like:
lngRecordCount = objSelect.Count