pjpark
Computer
- May 15, 2002
- 1
The following code works in one project but not another:
proc.CommandText = "QryPatientData"
proc.CommandType = adCmdStoredProc
Set proc.ActiveConnection = Me.Connection
proc.Parameters.Refresh
proc.Parameters("@PID".Value = m_lngID
Set rsPat = proc.Execute
The connection string, ActiveX Data objects version, command text, and parameters are the same in both projects. In both projects one record is affected when the sproc is executed. In the second project, the returned recordset is always closed. Why?
Any thoughts?
proc.CommandText = "QryPatientData"
proc.CommandType = adCmdStoredProc
Set proc.ActiveConnection = Me.Connection
proc.Parameters.Refresh
proc.Parameters("@PID".Value = m_lngID
Set rsPat = proc.Execute
The connection string, ActiveX Data objects version, command text, and parameters are the same in both projects. In both projects one record is affected when the sproc is executed. In the second project, the returned recordset is always closed. Why?
Any thoughts?