I am having trouble returning a recordset from my DLL. I want the following in effect<BR><BR>Public Function runSQL(s as string)<BR> Dim tmpRS as Recordset<BR> Set tmpRS = CreateObject("ADODB.Recordset")<BR> tmpRS.Open s,MyConn<BR> runSQL = tmpRS<BR> Set tmpRS = Nothing<BR>End FUnction<BR><BR>When I try the above, whatever is returned isn&#039t a recordset<BR>Any ideas??Thanks.