Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application Wizard

Status
Not open for further replies.

barbola

Technical User
Feb 27, 2003
1,132
CA
I'm very new to VB. I want to start using this for our users to run reports instead of Access so I don't have to link to the SQL tables and deal with data corruption.

I tried using the application wizard to create a very basic form with a combo box for customer list. I followed thru the wizard but when I try to run it, I get Compile Error: User-Defined Type Not Defined.

I have no idea. Will be taking courses next year though.

Thanks!
Barb E.
 
it seems to me like you are using a datatype that hasn't been defined anywhere.

All variables have to be defined as some sort of datatype, so I guess you should try to look into your code (open the form in design-mode and double-click it to see the code behind it) and look for all lines where variables have been declared (mostly these lines start with the 'dim' keyword).

standard datatypes can be 'string', 'integer', 'long', 'boolean', ...

I hope this makes sense?
 
Yes, it makes sense but you would think a wizard would take care of all that.

Anyway, I can't seem to find any variables that need to be declared.

Thanks!
Barb E.
 
Well, most wizzards scare me away because they never seem to do what I want them to do.

Is there a possibility for you to post the code?

or, if you don't want to post the whole code, you could also start the debugging yourself...

If you use VisualStudio, you can execute the code step by step by pushing the F8 key. This allows you to step through the code and seeing what it does right up to where the error occurs. (might take a while though... depending on how long the code is, and how many loops are in it).
 
I got mad and deleted it! Wizards seem to put in alot of extra junk that I don't think I need. I am going to be patient (not characteristic of me) and start from scratch.

I've used the debugging in VS so if I run into problems I will give that a try.

Thanks for your help.

Thanks!
Barb E.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top