Hi,
I want to loop through the elements of a datasheet but I can't seem to get this to work. I assumed it would behave like an array but I've put my (i) in all the obvious places and I still error out.
i = 0
Do Until i = Forms!Allocations!AllocationTypesSubform.Properties.Count - 1
MsgBox (Forms!Allocations!AllocationTypesSubform(i)! Code.Value)
i = i + 1
Loop
Any help would be appreciated.
I want to loop through the elements of a datasheet but I can't seem to get this to work. I assumed it would behave like an array but I've put my (i) in all the obvious places and I still error out.
i = 0
Do Until i = Forms!Allocations!AllocationTypesSubform.Properties.Count - 1
MsgBox (Forms!Allocations!AllocationTypesSubform(i)! Code.Value)
i = i + 1
Loop
Any help would be appreciated.