All tricks in this blog are only for educational purpose. Learn these tricks only for your knowledge. Please donot try these to harm any one. We will not take any responsibility in any case. All softwares and tools on this site are here for private purposes only and If you want to use a software for business purpose, please purchase it. I do not host many of these tools. I Post links that I have found from numerous Search engines. I will not be responsible for any of harm you will do by using these tools.


Thursday, December 22, 2011

"Compile error:user defined data type not defined "-VB 6.0

This is a common problem for Vb users.some of you know what is that.when you try to run vb programme on your machine which made on another machine it gives compile error like user define data type not defined & it shows error in this "Dim conn As ADODB.Connection" line.


To resolve this problem you need to remove reference to Microsoft ActiveX Data Objects 2.0 Liberary and then add reference to Microsoft ActiveX Data Objects 2.5 liberary or later version. To do this follow this steps:

1) On the Project menu, click References.

2)In the References  dialog box,click to uncheck the Microsoft ActiveX Data Objects 2.0 Library box and then click ok.

3) Click to select the Microsoft ActiveX Data Objects 2.5 Library check box, and then click OK.


4) On the Run menu, click Start to run the programme .

"i hope you like my posts.if you think my articles help you then please like my page & comment on my articles so i get idea what to make change on my articles. "