Custom Collection

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

Is there any way to display elements in a custom collection in a form? Can
elements me added and deleted through a form?

Thanks!

Mark
 
Consider using a table instead of a collection and what you want to do is
simple. If you use a collection, it is more complicated -- unbound forms or
temporary tables and such.

Larry Linson
Microsoft Access MVP
 
How you reference them depends on what kinds of objects are in the
collection, but assuming the objects in your collection have a Name
property, you could loop through them with:
Dim obj As Object
For Each obj In MyCollection
Debug.Print obj.Name
Next

To display them in a form, you could output a string to a tall text box, or
use AddItem with a listbox.
 
Back
Top