Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
May 15, 2002
Messages
1
Location
US
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?
 
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

Back
Top