When updating recordset I get error -2147467259 (to many rows affected by update) 
Author Message
 When updating recordset I get error -2147467259 (to many rows affected by update)

When updating recordset I get error -2147467259 (Insufficient or incorrect
key column information; to many rows affected by update)

Help

I am developing a webclass that passes about 200 records from an online form
to a access97 database.

Upon "recordset.update" I get the error above.

Pseude Code
with recordset
    if state=0 then .open
    do while not .eof
        x=x+1
        !Field1=request("String"& x)
        !Field2=request("String"& x)
        !Field3=request("String"& x)
        .update            <-----------------ERROR -2147467259
        .movenext
    loop
    if .state=1 then .close
end with



Sun, 18 Aug 2002 03:00:00 GMT  
 When updating recordset I get error -2147467259 (to many rows affected by update)
If you have any indexes defined in you table you must include those
fields in your select statement, otherwise the recordset becomes
confused and is unable to update the record(s). For Example:

"Select X1, X2, A1, A2 From table"
where X1 and X2 are indexed
do while not rs.eof
  rs.A1 = "111"
  rs.A2 = "222"
  rs.update
  rs.movenext
loop

If you don't include X1 and X2 you'll get the error.

Quote:
-----Original Message-----

When updating recordset I get error -2147467259 (Insufficient or
incorrect
key column information; to many rows affected by update)

Help

I am developing a webclass that passes about 200 records from an online
form
to a access97 database.

Upon "recordset.update" I get the error above.

Pseude Code
with recordset
    if state=0 then .open
    do while not .eof
        x=x+1
        !Field1=request("String"& x)
        !Field2=request("String"& x)
        !Field3=request("String"& x)
        .update            <-----------------ERROR -2147467259
        .movenext
    loop
    if .state=1 then .close
end with



Sun, 01 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Error:Too many rows were affected by update

2. 2147467259 Recordset Update Method (SQL Server)

3. Error 2147467259 Insufficient base table information for updating or refreshing

4. recordset.update updates > 1 row

5. XP installation : 2147467259 Insufficient base table information for updating or refreshing

6. 2nd SQL Server update after update text field corrupts row - using RDO

7. -2147467259 (9737) Error while opening a recordset

8. -2147467259 (9737) Error while opening a recordset

9. Insufficent key column information for updating and refreshing:Too many rows to update

10. ADODB.Recordset.Update does not update?

11. Bound controls not updating ADO with adodc.recordset.update command

12. Updating textbox via code not updating recordset

 

 
Powered by phpBB® Forum Software