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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update rs not working

Status
Not open for further replies.

riarc

Programmer
Dec 6, 2001
44
US
I am updating my recordset and for some reason I keep getting and error msg. Can anybody see anything wrong with this?
My rs is open and it is an Optimistic


With rstCustomerInfo
.Fields("l_name") = txtLastName.Text
.Fields("f_name") = txtFirstName.Text
.Update
End With
 
What cursortype are you using?

Try .CursorType = adOpenDynamic

might help.


Mat
 
I tried that. The error msg I get is a run time error.
"Multiple step operation generated error."
Cusror location is client side.
 
I am using SQL server 7. I was returning my rs from a stored procedure but for some reason it wouldn't allow me to update the rs. So I put the sql in my Utility and opened the rs that way.
Here is the exact err_msg
"Multiple step OLE DB operation generated errors. check each OLE DB status value if available.
 
All I can think of is that it may not be an updatable query. You could try a work around by directly updateing the table seperatly when you know what infomation needs updating.

sorry, maybe someone else can shed some light on the matter

Mat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top