Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey All,
I'm trying to run a SQL statement against an Excel range. For example, say we have a range with the following: Name Year Earnings Company1 1999 $25,000 Company2 1999 $30,000 Company3 1999 $35,000 Company1 2000 $27,000 Company2 2000 $32,000 Company3 2000 $37,000 Company1 2001 $29,000 Company2 2001 $34,000 Company3 2001 $39,000 And want to do something like: SELECT Name, Year, Earnings FROM Selection WHERE Name='Company1' The ADO code samples that I found do not have complex SQL statements and, more importantly, do not work. Thanks in Advance, TC |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
complex if statement | Excel Worksheet Functions | |||
Complex IF Statement | Excel Discussion (Misc queries) | |||
Complex IF THEN statement | Excel Worksheet Functions | |||
Complex If/And Statement | Excel Worksheet Functions | |||
Help with complex If statement | Excel Worksheet Functions |