Hi,
that's what I did :
declared in module :
Type tagRec
....
End Type
Public Rec0 as tagRec
on Form-Load :
Rec0 = MyFunc(...) where MyFunc return VARIANT
now it gives me a message like this :
You attempted to use a public user defined type as a parameter or return type for a public procedure of a class module, or as a field of a public user defined type. Only public user defined types that are defined in a public object module can be used in this manner.
what does it mean with "public object module"
any help welcome
that's what I did :
declared in module :
Type tagRec
....
End Type
Public Rec0 as tagRec
on Form-Load :
Rec0 = MyFunc(...) where MyFunc return VARIANT
now it gives me a message like this :
You attempted to use a public user defined type as a parameter or return type for a public procedure of a class module, or as a field of a public user defined type. Only public user defined types that are defined in a public object module can be used in this manner.
what does it mean with "public object module"
any help welcome