Recordset Object

Joined
Mar 17, 2006
Messages
1
Reaction score
0
I'm connecting to Active Directory like this

Set objConnection = CreateObject("ADODB.Connection")
objConnection.Open "Provider=ADsDSOObject;"
Set objCommand = CreateObject("ADODB.Command")
objCommand.ActiveConnection = objConnection
objCommand.CommandText = "some SQL query"
Set objRecordSet = objCommand.Execute
and so far so good

I would like to create
sub temp(rs as recordset)
doing something with rs
end sub
but i keep getting error message while compiling on line sub temp(rs as recordset)
"User-defined type not defined"
I tried with sub temp(rs as ADODB.recordset)
but the error is the same...
why? anyone?
thx
tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top