Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

ADO Stumper

Status
Not open for further replies.

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(n)

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?
 
Replies continue below

Recommended for you

make a simple project with only the above code and then add the rest of the code until you get the bug.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor