By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,066 Members | 1,841 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,066 IT Pros & Developers. It's quick & easy.

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

P: n/a
After following the instructions at
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?
Aug 20 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a

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.
Aug 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.