Thanks bcap! That did it! I'm so happy now. This is a summary of the steps
for any one reading out here:
1) Create your class then export it as text.
2) Delete the class from the project.
3) Edit the text file to implement the procedure attributes, inserting the
line "Attribute NewEnum.VB_UserMemId = -4" right below the function header
"NewEnum()."
4) Re-import the class.
Also I have been playing around a lot and I found it is lot easier to just
use the Class Builder utility under VB6, and import the .CLS files into
Access. Cool stuff! Thanks bcap!
"bcap" wrote:
> VBA is not VB6! This might help:
>
> http://p2p.wrox.com/topic.asp?TOPIC_ID=26259
>
> To do it in a more "VBA" kind of a way, have the Books collection as a
> public member of the Bookshelf class.