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
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