If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Unanswered: Recordset Type Mismatch

I am passing a recordset as a parameter for a procedure and getting a type mismatch. Here is the just of the code:

public sub main
dim rst as new adodb.recordset

call func1(rst)

end sub
-------------

public sub func1(rst as adodb.recordset)

call func2(rst)

end sub

public sub func2(rst as adodb.recordset)

blah,blah,blah

end sub

---- Done ----

if I call 'func2' directly from 'main' it works fine, but if I call 'func2' from 'func1' I get a type mismatch on the recordsets. I've tried messing with byval and byref. I don't know what is up. TIA
GG