Using Access VBA to Query a SQL Server Database

Although we can create Linked Tables in Access that pull information from a SQL Server Database there are times when you want to check a value or lookup a value from an underlying SQL Server database directly from an Access Query.

Using VBA we can do this!

We will look at an example that enables us to lookup a customer’s total revenue value from an Access Query.

 

Using Excel VBA to Query a SQL Server Database

Although we can create External Data Sets in Excel that pull information from a SQL Server Database there are times when you want to check a value or lookup a value from an underlying SQL Server database directly from an Excel formula.

Using VBA we can do this!

We will look at an example that enables us to lookup a customer’s total revenue value from an Excel Formula.