Problem with user defined Datatype
Posted on 2006-05-30
I have the following in a general declaration of a module
iIndex As Integer
strMgrID As String
strMgrName As String
and this in the general declaration area of a form
Dim arMgrList() As tManager
when i try to open the form that uses the data type i get a
"user-defined type not defined" error,
if i move the declaration in to the top of the form module i get
"Cannot define a PUBLIC user-defined type within an object module"
ALL mocdules have
Option Compare Database
at the beginning of all general declarations
been at it for some time cannot see the problem.