Class reference (1 Viewer)

dynamictiger

Registered User.
Local time
Today, 02:39
Joined
Feb 3, 2002
Messages
270
I did this once before and got it working, but lost the example I had in a harddrive incident.

I am setting up a fairly complex wizard using form, subform model. The forms and subforms are unbound, and I intended to dump the data into a class to process on completion of the wizard.

I am trying to set up the class reference. I seem to recall I used:

Public WithEvents clsWiz as clsChemWiz

But this seems to not be the answer, as it is not responding as I recall.

Anyone got an idea?
 

Mile-O

Back once again...
Local time
Today, 02:39
Joined
Dec 10, 2002
Messages
11,316
WithEvents can only be used in a Dim statement within a Class Module.

Code:
Public clsWiz As New clsChemWiz
 

dynamictiger

Registered User.
Local time
Today, 02:39
Joined
Feb 3, 2002
Messages
270
Still giving variable undefined in subform:mad:
 

Mile-O

Back once again...
Local time
Today, 02:39
Joined
Dec 10, 2002
Messages
11,316
You have defined this in a standalone module and not the form or subform, haven't you?
 

dynamictiger

Registered User.
Local time
Today, 02:39
Joined
Feb 3, 2002
Messages
270
Remembered- found an example I still had.

Me.Parent.mobjWiz
 

Users who are viewing this thread

Top Bottom