I would like to pass a recordset of a subform to a function that takes a recordset as a parameter like:
Whenever I try this I get a error number 13 Data Type mismatch. Can anyone tell me why and what I have to do to pass a subform's recordset to a function?
Thanks,
Rewdee
Code:
sub Cmd1_click
if GotoData(Me.subform1.Form.Recordset) then
msgbox "Yeah it works!"
end if
end sub
private Function GotoData(rs as recordset) as boolean
GotoData=True
end function
Whenever I try this I get a error number 13 Data Type mismatch. Can anyone tell me why and what I have to do to pass a subform's recordset to a function?
Thanks,
Rewdee