VB Code:
[size="1"]' Needs a reference to the "Microsoft ActiveX Data Objects x.0"
' object library from the project > references menu.
Private Sub Form_Load()
Dim objDllClassRef As proRSTesting.clsRSSubTest
Dim conn As ADODB.Connection
Dim rs As ADODB.Recordset
' Code to setup the ado connection & populate the recordset
'setup the dll reference and call on the sub procedure
' passing in the recordset created above.
Set objDllClassRef = New proRSTesting.clsRSSubTest
objDllClassRef.WhaterYourDoingWithTheRecordset rs
End Sub[/size]