Accessing a user defined object

access83

Registered User.
Local time
Today, 16:45
Joined
Apr 25, 2012
Messages
22
Hi All,

I have created my own class called Organisation. In a pop out form that the user enters the details of the organisation, an instance of the Organisation class is instantiated.

e.g.
Public myOrg as COrganisation
Set myOrg = New COrganisation

The properties of the object were then set.

e.g.
myOrg.name = "General Corp"
myOrg.address1 = "1 Enterprise Ave"

That pop up form will then close. From the main form (where the pop up form comes from when a user selects a particular option) then I want to access the properties of the Organisation class. So I tried myOrg.name but received an error. Can I not access the object here even though I declared it as Public?

Thanks in advance :)
 

Users who are viewing this thread

Back
Top Bottom