I don't believe you can call an access function directly from a non access program. If you explain the requirements of the ADO call, then maybe there are other alternatives available. For example, is the ADO from an ASP page. If it is from ASP, it would be easier to rewrite the function as an include file or a COM object.