|
-
Oct 13th, 2004, 01:45 PM
#1
Thread Starter
Addicted Member
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
-
Oct 13th, 2004, 02:06 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|