TheRedCardinal
Board Regular
- Joined
- Jul 11, 2019
- Messages
- 243
- Office Version
- 365
- 2021
- Platform
- Windows
I have a procedure that puts item numbers that need to be dealt with later into a collection.
Then it re-dims an array based on the size of that collection.
For the first time, there was nothing to be dealt with, and so my collection is empty (but has still been defined).
I have tried:
But I get an error with each one.
Is there a better way to test the condition?
Then it re-dims an array based on the size of that collection.
For the first time, there was nothing to be dealt with, and so my collection is empty (but has still been defined).
I have tried:
- If Not Isempty(Collection)
- If Not IsEmpty(Collection.AllItems)
- If CountRows(Collection) > 0
But I get an error with each one.
Is there a better way to test the condition?