Do While Not oQuery.QuerySet.EOF Debug.Print oQuery.QuerySet.FieldName(1) 'First Column Name Debug.Print oQuery.QuerySet.FieldValue(1) 'First Column Value oQuery.QuerySet.MoveNext 'Move on to next record in query lCount = lCount + 1 Loop

Debug.Print "Number of records processed: " & lCount

oQuery.Closedown

Set oQuery = Nothing

End Sub

Disclaimer: We provide programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Microsoft Visual Basic and the tools used to create and debug procedures. Our Customer Support can help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality. If you are interested in learning more about the VBA and API modules, contact your account manager.

Was this article helpful?

Thanks for your feedback! Did this solve your issue?

Comments (optional):

Thanks for your feedback!

We're glad it was helpful but sorry it didn’t solve your issue. If you need assistance, click Chat with Support below.

We’re sorry to hear that. Please tell us why.

I don't like how this works.

The answer is confusing.

The answer didn't match what I was searching for.

Additional Comments (optional):

Thanks for your feedback! If you need assistance, click Chat with Support below.