All,
I have recently encountered a problem that seems rather straight forward, and in the past has not been an issue because deleted records were "PACKED" as soon as a table had the records removed, but I have a new requirment that does not allow for that.
As a result, I recently encountered a problem where I have a button on a form that I was "Ignoring" in the WHEN clause if the table's RECCOUNT() returned 0... but even with SET DELETED ON, if there are no "Undeleted" records in the table, RECCOUNT() returns the value of all records... so when I delete the last record from my table, the "WHEN" condition is not met.
What is the best method of determining if your table is actually "Empty" in this case???
Best Regards,
Scott
"Everything should be made as simple as possible, and no simpler."![[hammer] [hammer] [hammer]](/data/assets/smilies/hammer.gif)
I have recently encountered a problem that seems rather straight forward, and in the past has not been an issue because deleted records were "PACKED" as soon as a table had the records removed, but I have a new requirment that does not allow for that.
As a result, I recently encountered a problem where I have a button on a form that I was "Ignoring" in the WHEN clause if the table's RECCOUNT() returned 0... but even with SET DELETED ON, if there are no "Undeleted" records in the table, RECCOUNT() returns the value of all records... so when I delete the last record from my table, the "WHEN" condition is not met.
What is the best method of determining if your table is actually "Empty" in this case???
Best Regards,
Scott
"Everything should be made as simple as possible, and no simpler."
![[hammer] [hammer] [hammer]](/data/assets/smilies/hammer.gif)