could i get an example of how to call a sql stored proc that requires 4
input parms and returns 1?
DAO or ADO or both.
thanks much,
mcnewsxp
this is what i was looking for:
Dim objCmd As New ADODB.Command
Dim longConveyance As Long
objCmd.ActiveConnection = "Provider=SQLOLEDB;Server=SQI-CDCDV1.CDC.GOV
\QSRV1;Database=SCANNEDFORMSEPIX;Trusted_Connection=yes;"
objCmd.CommandType = adCmdStoredProc
objCmd.CommandText = "spInsertConveyance"
objCmd.Parameters.Refresh
objCmd.Parameters(1).Value = txtAirlineCode
objCmd.Parameters(2).Value = txtArrivalAirportCode
objCmd.Parameters(3).Value = txtFlightNumber
objCmd.Parameters(4).Value = txtArrivalDate
objCmd.Parameters(5).Value = txtArrivalState
objCmd.Parameters(6).Value = Null
objCmd.Execute
longConveyance = objCmd.Parameters(0).Value
longConveyance = objCmd.Parameters(6).Value
Set objCmd = Nothing