How to assign query results to cells

T

Tangier

mysql01 = " SELECT "
mysql02 = " ChildRecords.ChildID "
mysql03 = " FROM ChildRecords "



ActiveWorkbook.Worksheets.Add
With ActiveSheet.QueryTables.Add(Connection:= _
"ODBC;DRIVER={Microsoft Access Driver (*.mdb)};Dbq=SomePlace"
_
, Destination:=Range("A1"))
.CommandText = Array(mysql01, mysql02, mysql03)

How do I assign the results, ChildRecords.Child to a specific cell?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top