I need to create a database object and a recordset object in my non vb application to be able to open the database(access) using DAO. I would like to mimic the following vb code in my nonvb app.

public db as database
public rs as recordset

since my non-vb app doesn't know these types, I need to create object and access thru those.
I thought createobject("DAO.database") or createObject("data") would work. but, I am getting error.

Any help would be greatly appreciated.

thanks,vijaya