Web Hosting Talk







View Full Version : Visual Basic Code Helpp


saj
05-04-2006, 04:29 AM
Hi Guys

Im trying to find some sort of Visual Basic application that allows me to query AD through a VB interface

I found this code :

http://www.freevbcode.com/ShowCode.Asp?ID=710

Can some tell me exactly what im suppose to do with this code?

Essentially what i want to to do is Creat a Simple Text Box and a Button where i put say the USer or PC number in the text box and it querys AD and returns the result is it possible with the ^^ Above code?

Chadha
05-04-2006, 05:58 AM
yes, this code will do the job for you. The code queries the active directory for the user account entered.

saj
05-04-2006, 06:10 AM
yes, this code will do the job for you. The code queries the active directory for the user account entered.


Ok Thanks for that

But How do i do it?

do i create a new VB Project and Insert that in the code section

or do i need to create boxes and buttons etc

just a bit confused as to how to start

Chadha
05-04-2006, 07:05 AM
Yes, create a new vb project. Add the controls as mentioned in the code link and name the controls as mentioned in the code and you will have the code running in no time.

Good Luck...!

ACW
05-04-2006, 07:30 AM
Also, since it uses the ADODB component, you will want to add a reference to the "Microsoft ActiveX Data Objects x.x Library" where x.x is the version number. Just use the latest version in your system. I don't have VB6 installed on this system but I think you can add references by selecting Project/References on the menu bar.