I have a button on a form that calls a stored procedure. It comes back with a variable called return_value
I would like to call that back to the form in VBScript to display it in a text box...
Here is what I have so far and it works great. I'm struggling with the returnvalue
Sub CommandButton1_Click
dim sServer, sConn, oConn, sDatabaseName, sUser, sPassword
sDatabaseName="test_app"
sServer="XXXXXXXXXXXXX"
sUser="sa"
sPassword="XXXXXXXXXXXXX"
sConn="provider=sqloledb;data source=" & sServer & ";initial catalog=" & sDatabaseName
Set oConn = CreateObject("ADODB.Connection")
oConn.Open sConn, sUser, sPassword
oConn.Execute "exec spsoCopyDatesFromQuoteToSO '" +Form.Controls("txtSONum")+"'"
oConn.Close
Set oConn = Nothing
End Sub