I have created a small program, one window, 3 pushbuttons, a listbox and label. When the program compiles I get the message ‘There is more than one item with this name and it’s not clear to which this refers.’ So I changed the item name and got the same message. It was a public item so I changed it to private but still got the same message.
If dbfile.Exists Then
For Each c As FolderItem In dbfile
LB1.addrow = c.name
Next
End
LB1.addrow is highlighted.
On the previous line I get the message ‘This object does not implement the iterable interface and cannot be used in a For Each Loop’