|
-
Apr 28th, 2003, 07:24 PM
#1
Thread Starter
Registered User
Global With events object
If I put the following declaration in a forms header then I can use the object within the form
Dim WithEvents objEvents As clsEvents
However if I try and put the same declaration in a module then it turns bright red, anyone know how I can declare a global object with events?
-
Apr 28th, 2003, 07:28 PM
#2
Registered User
try to replace Dim with Public
-
Apr 28th, 2003, 07:31 PM
#3
Thread Starter
Registered User
thx but I get the same problem.
-
Apr 28th, 2003, 07:37 PM
#4
Need-a-life Member
-
Apr 28th, 2003, 08:14 PM
#5
Thread Starter
Registered User
Thx McBrain, nice work around
-
Apr 28th, 2003, 08:20 PM
#6
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|