Results 1 to 5 of 5

Thread: compile error...Help!!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Land of Entrapment
    Posts
    31

    Exclamation

    Hey all,
    I have NO idea what this compile error means and the MSDN docs aren't helping either! Whenever I test run my program I'm getting this error:

    "Compile error:

    User-defined type not defined"

    What the heck does this mean!?!

    Thanks!

  2. #2
    Addicted Member
    Join Date
    Sep 2000
    Posts
    138
    I think you have to check the spelling of your variables carefully. That is in many cases where the user defined type error comes from.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Land of Entrapment
    Posts
    31
    Unfortunately I don't think that's it. I moved some code from a form to the module to clean it up so I didn't run 150 different (but nearly identical) actions based on a click event. Thanks though...

  4. #4
    Addicted Member
    Join Date
    Sep 2000
    Posts
    138
    Can you show the line on which the error appears?

  5. #5
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008

    Scope

    This is almost certainly to do with Scope - your UDT is not 'visible' to the function (or whatever) that is trying to use it. Try moving it back to where it came from in the form and make sure that fixes it. Then move the UDT definition to a .BAS module and declare it as Public, then move it into your module, declared as Public and so on and so on....

    Cheers,

    Paul.
    Not nearly so tired now...

    Haven't been around much so be gentle...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width