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

Recordset .update updating all rows?

Status
Not open for further replies.

hdougl1

Programmer
Dec 6, 2000
54
US
My objective is select a row from a database based on the where clause. I'm getting back one row, but when I change the value that recordset and do a rst.update all the rows in the database are changed to that value. Here's the code.
Thanks a lot people this site is a good thing.
Henry

strSQL = "SELECT FADone, FADate, FADoer FROM Disposal_Detail WHERE Serial = '"& Trim(Request.Form("Serial")(m)) & "'"

rstDetail.Open strSql, objClassConn, 3, 3
rstDetail("FADone") = Request.Form("FADone")(m)
rstDetail("FADoer") = qualname
rstDetail("FADate") = Now()
rstDetail.Update
 
I found it you have to select the key field.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top