Results 1 to 2 of 2

Thread: count the update values(rows)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Location
    Earth, I think!!
    Posts
    249

    count the update values(rows)

    Hi all,

    i am stuck on this... how could i count the update values(rows) from an update query without using a select query to count the data .
    I use a ADODB.Command to run the update query in an Access DB.

    Thanks,
    @ndy

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132
    ADO Command and Connection object's Execute method has optional argument [RecordsAffected] so you may pass an Integer variable and after execute is completed - read it back.

    adoConnection.Execute "test", intRecordsAffected
    MsgBox intRecordsAffected

    or ...

    adoCommand.Execute intRecordsAffected, "parameter"
    MsgBox intRecordsAffected

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width