Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 22nd, 2006, 05:41 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to wcambris
Default Cannot use class objects

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
 
Old January 22nd, 2006, 06:28 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

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

 
Old January 22nd, 2006, 06:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

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






Similar Threads
Thread Thread Starter Forum Replies Last Post
DataBinding to class objects Chris Van Duin Pro Visual Basic 2005 2 February 17th, 2008 06:04 PM
Property access from Class within Partial Class zoltac007 C# 2005 0 December 1st, 2006 01:01 AM
Regarding Class Library (.dll) from class file manish.sharma04 BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 March 3rd, 2006 07:32 AM
Class disappears in the class panel hint2310 Visual C++ 0 September 18th, 2004 03:46 PM
How to include c# class and vb class in the .vbprj umeshayk VS.NET 2002/2003 2 January 9th, 2004 12:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.