Querying Database with Macro
There is an Excel file that teaches how to perform the Querying Database with Macro operation.
Excel Querying Database with Macro
This workbook uses VBA with ADO connections and SQL queries across DataSource and RecordControl sheets to demonstrate database integration.
Hope it is useful.