L
Lulu
When using Pages as a collection in a for each statement,
I get an error message saying only collections can be
enumerated. But Pages ARE a collection, and Access Help
clearly states it can be used in a For Each. What am I
failing to do correctly?
Dim MYPAGE As Page
For Each MYPAGE In Pages
Debug.Print MYPAGE.Caption
Next
I get an error message saying only collections can be
enumerated. But Pages ARE a collection, and Access Help
clearly states it can be used in a For Each. What am I
failing to do correctly?
Dim MYPAGE As Page
For Each MYPAGE In Pages
Debug.Print MYPAGE.Caption
Next