Connecting Tech Pros Worldwide Forums | Help | Site Map

Compile-error. User defined type not defined? - A97

MLH
Guest
 
Posts: n/a
#1: Aug 20 '06
After following the instructions at
http://support.microsoft.com/?id=258049
I get an error at compile time complaining
about c As CloseCommand

Function InitApplication()
'************************************************* *******************
' It calls a class module (see Class1 in modules Tab of database
' window) which contains functions to remove the red "X" button
' from the upper right hand corner of the Tow-Pak application.
''************************************************ ********************
Dim c As CloseCommand
Set c = New CloseCommand

'Disable Close menu.
c.Enabled = False
End Function

What mistake did I make?

MLH
Guest
 
Posts: n/a
#2: Aug 20 '06

re: Compile-error. User defined type not defined? - A97


Duhh???

I inadvertently accepted the default name of "Class1"
when I saved the class module. So sorry. After renaming
the class module to "CloseCommand" ==everything
worked fine as expected.
Closed Thread