How can I call a stored procedure on a SQL 7.0 DB from VB with DAO (have it in code for ADO but I need for DAO)? I don't want to convert everything to ADO even though I know ADO is better for SQL and DAO is more for Access...
In the DAO help files (or section there of), look up ODBC Direct, and off the top of my head I think you can...
[tt]
SQLStringVariable = "exec Stored_Proc_Name " & Optional_Parameter & ", " & Optional_Parameter 'That is if the SP is expecting such parameters
DAODataBase.Execute SQLStringVariable 'DAOWorkSpace,DAODataBase,DAORecordset
[/tt]
You can use a the recordset if the SP is returning information (recordset)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.