| | |
|
PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Updating too many records |
From: |
Kevin ONeil |
Date: |
10/26/1999 10:11:03 PM |
IP: |
129.93.53.69 |
Im currently experiencing a problem with my ASP code. A section of it is copied below. When this code updates the database (Access
2000), it updates more than one line (more than one record) even though the WHERE statement should limit the recordset to
just one record because each line has a unique value of "subjnum". What could be causing this? If you need to know more,
or need the full code, email me and Ill send it to you.
Thanks. Please email me with your comments/answers.
Code:
set rs = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT date2,time2,att,dq,condorig FROM KevinData WHERE subjnum = "& request.form("subjnum") & ""
rs.Open strSQL, objConn, adOpenForwardOnly, adLockOptimistic, adCmdText
rs("date2") = request.form("date")
rs("time2") = request.form("time")
rs("att") = request.form("att")
rs("dq") = request.form("dq")
rs("condorig") = strcond
rs.Update
rs.Close
|
|
|
|
|
|
|