Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can I just use SQL against tables right in Excel? Why won't something
like this work? Why would I have to open up a channel when I just want to work with an excel table? Dim Querystring As String Dim DatabaseName As String DatabaseName = "testtable" QueryString = "SELECT * FROM testtable.field_three WHERE (testtable.field_one="yes")" Chan = SQLOpen(DNS??& testtable) SQLExecQuery Chan, Querystring Set Output = Worksheets("Sheet1").Range("A1") SQLRetrieve Chan, Output, , , True SQLClose Chan End Sub -- Please contact me by email if you have an answer to this question. I appreciate it. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Have a look at my reply in this thread:
http://groups.google.co.uk/group/mic...7bc1fa333007ec RBS "TAD from DBL" .(donotspam) wrote in message ... How can I just use SQL against tables right in Excel? Why won't something like this work? Why would I have to open up a channel when I just want to work with an excel table? Dim Querystring As String Dim DatabaseName As String DatabaseName = "testtable" QueryString = "SELECT * FROM testtable.field_three WHERE (testtable.field_one="yes")" Chan = SQLOpen(DNS??& testtable) SQLExecQuery Chan, Querystring Set Output = Worksheets("Sheet1").Range("A1") SQLRetrieve Chan, Output, , , True SQLClose Chan End Sub -- Please contact me by email if you have an answer to this question. I appreciate it. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
concatenate tables into html tables | Excel Discussion (Misc queries) | |||
Excel tables vs. system tables | Excel Programming | |||
Building pivot tables in Excel 2007 based on existing pivot tables? | Excel Discussion (Misc queries) | |||
Any way to programmatically make pivot tables behave more like data tables? | Excel Programming | |||
Extracting/Exporting HTML Tables or PDF Tables into Excel | Excel Programming |