question on adding a Type to a Collection object

T

Terrell Miller

got a UDT that I've defined as Public in my mdlGlobals. Also have a
Collection object that I want to populate with a bunch of instances of
the type as I loop through an ADO recordset.

I get an error message, something about "only a Public user-defined type
can be coerced to a Collection object".

Anybody ever seen this one? I can add instances of a Class and it works
fine, but when I try to add the Type object it always gives me the
compile error.

Sorry I don't have code snippets, I'm at home right now instead of at
work. But a friend of mine is getting the same error when he tries
something similar.

TIA,

--
Terrell Miller
(e-mail address removed)

"Every gardener knows nature's random cruelty"
-Paul Simon RE: George Harrison
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top