"rocco" <(E-Mail Removed)> wrote in message
news:531AC139-8865-4705-95A9-(E-Mail Removed)...
> it should be:
> myCollectionName.Item(itemIndex).Save
>
> ...I guess...
>
> "rocco" wrote:
>
>> Hello,
>> I have a collection of objects. Each object has few properties and few
>> methods, among which: save, delete, recall and others.
>> The "save" method of each object runs few private class functions to
>> double
>> check data and if everything is fine it adds the data collected in few
>> tables.
>> I would need a way to iterate the objects in the Collection (and I know
>> how
>> to do this) and call for each of them the "save" method. Is this
>> possible?
That would work. Or you could write:
Dim obj As Object
For Each obj In myCollectionName
obj.Save
Next obj
--
Dirk Goldgar, MS Access MVP
Access tips:
www.datagnostics.com/tips.html
(please reply to the newsgroup)