I am running an update query to SQL Server through VBA using VBA's ADODB connection class. In SQL Server the query returns rows affected which can be accessed in VBA through the ADODB command class.
However I have no idea how to return an array of multiple records affected statements.
I am using the sample code:
Dim ADODBconn As ADODB.Connection
Dim rsRead As New ADODB.Recordset
Dim Rslt_Count As Long
'Set Up Connection and begin SQL Transaction
Set ADODBconn = CurrentProject.AccessConnection
ADODBconn.BeginTrans
'Build Update SQL
SQLLine = "******update query that runs on multiple tables here********"
'Execute SQL
ADODBconn.Execute SQLLine, Rslt_Count, dbFailOnError
MsgBox Rslt_Count
ADODBconn.CommitTrans
ADODBconn.Close
Any help appreciated. Thanks Richard