|
Subject:
|
Cannot use class objects
|
|
Posted By:
|
wcambris
|
Post Date:
|
1/22/2006 4:41:39 AM
|
Dear everyone I am reading the "Beginning Access 2003 VBA", in chapter 4 we have to create our own objects in a class module then we have to use these objects in a form. All went perfect until I had to use the object, when we write the object name and press the dot we should see the list of properties for that object...well this is not happening. I Also get a warning when I load the form that the events cannot be executed because of missing reference.
Please Help Wael
|
|
Reply By:
|
Bob Bedell
|
Reply Date:
|
1/22/2006 5:28:01 AM
|
Hi Wael,
It would help if you post your class module code. Does your error message give you any specific information about which reference is missing? Or if you look in the References dialog are any of the reference names precedded by MISSING:
Bob
|
|
Reply By:
|
Bob Bedell
|
Reply Date:
|
1/22/2006 5:39:22 AM
|
Instantiating an object with either:
Dim obj As New Class1
or
Dim obj As Class1 Set obj = New Class1
is all thats required to enable Intellisense and view your class members so long as they are declared PUBLICLY in the class.
Bob
|