"User-defined type not defined" 
Author Message
 "User-defined type not defined"

When I enter the following code in a subroutine:

Dim conn As ADODB.Connection

and run the program, I get an error saying "User-defined type not defined."

All the tutorials say that this is the right code to enter. Can anyone please
help me with this and tell me what is the problem?



Mon, 06 Sep 2004 02:07:11 GMT  
 "User-defined type not defined"
Are you referencing ActiveX Data Objects in the project?


Quote:
>When I enter the following code in a subroutine:

>Dim conn As ADODB.Connection

>and run the program, I get an error saying "User-defined type not defined."

>All the tutorials say that this is the right code to enter. Can anyone please
>help me with this and tell me what is the problem?

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----


Mon, 06 Sep 2004 02:09:44 GMT  
 "User-defined type not defined"

Quote:

>Are you referencing ActiveX Data Objects in the project?

How do I do that?


Mon, 06 Sep 2004 02:11:25 GMT  
 "User-defined type not defined"
Project | References

Check the "Microsoft ActiveX Data Objects x.x" box


Quote:

>>Are you referencing ActiveX Data Objects in the project?

>How do I do that?

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----


Mon, 06 Sep 2004 02:14:05 GMT  
 "User-defined type not defined"
Hi Mike,

I've selected Project | References, and there is no entry there for "Microsoft
ActiveX Data Objects x.x". Is my Visual Basic software incomplete? How do I get
around this problem?

Thanks,

Ilya.



Mon, 06 Sep 2004 02:32:31 GMT  
 "User-defined type not defined"
Hi,

To be able to use ADO, first you need to add reference to
it from your VB application. Got to Project, References
menu option and check Microsoft ActiveX Data Objects ...

Val

Quote:
>-----Original Message-----
>When I enter the following code in a subroutine:

>Dim conn As ADODB.Connection

>and run the program, I get an error saying "User-defined
type not defined."

>All the tutorials say that this is the right code to

enter. Can anyone please
Quote:
>help me with this and tell me what is the problem?
>.



Mon, 06 Sep 2004 02:43:50 GMT  
 "User-defined type not defined"
Ok, nevermind. I found it. Thank you very much!


Mon, 06 Sep 2004 02:54:15 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. FileSystemObject "User Defined Type Not Defined"

2. "User defined type, not defined"

3. "Database - user defined type not defined"????

4. "User-defined type not defined" - error message for ADO code

5. Dim As Database gives "User-Defined type not defined" msg

6. "User defined type not defined" (Access 2K)

7. Dim MyDb As Database returns error message "user defined type not defined"

8. "User defined type not defined" trying to connect to an Access DB from Ourlook 2000

9. "User-defined type not defined" ERROR using a DataObject

10. Recordsets results in "User-defined type not defined"

11. Error "User-define type not defined" While using New FileSystemObject Method

12. Recordsets results in "User-defined type not defined"

 

 
Powered by phpBB® Forum Software