Use the following code to call a stored procedure - the example takes two parameters from my form:
The strConnect is a constant in the form of:
"ODBC;DSN=YOUR_DSN_NAME;SRVR=YOUR_SERVER_NAME;DATABASE=YOUR_DB_NAME;UID=youruserid;PWD=youruseridpassword;"
Dim strConnect As String
Dim strSQL As String
Dim dbs As Database
Dim qdf As QueryDef
Dim strErrMsg As String
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.