Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dao and sql procedures

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How do you call a sp that return value(s) using DAO.
I checked msofts site and found this:

the sqlstr builds the stored procedure with the passed in vars

the connection is valid also

--------------------------------------------------
Dim rstTest As Recordset
Dim test

Set rstTest = Connection.OpenRecordset(sqlstr, dbOpenSnapshot, dbSQLPassThrough)
-------------------------------------------------

when i try this, i get an "invalid argument error"



 
try filling sqlstr with the same command that you use to execute SP's on your db engine

:-I bluenote@uyuyuy.com
(excuse my english)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top