Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Valid select statements using OLEDB and Excel

Hello,
I am looking for any info about valid select statements when using the OLEDB
with Excel.

Some quick questions I am trying to answer:
1. Can you say something like "Select Col1, Col2 from Worksheet"
2. Are "where'"statements valid? "Select * from Worksheet where col1 =
'dan'"


I did some googling and found great information but nothing centralized on
the subject. Is there a website or document or link anyone can recommend that
discusses this topic in detail?
Thanks in advance!

Dan H.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Valid select statements using OLEDB and Excel

1. "SELECT * FROM [Sheet1$A:E]"

2. "SELECT * FROM [Sales$A:E] WHERE Name='Bob'"

Name being the column heading which will get treated as a recordset field.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

wrote in message
...
Hello,
I am looking for any info about valid select statements when using the

OLEDB
with Excel.

Some quick questions I am trying to answer:
1. Can you say something like "Select Col1, Col2 from Worksheet"
2. Are "where'"statements valid? "Select * from Worksheet where col1 =
'dan'"


I did some googling and found great information but nothing centralized on
the subject. Is there a website or document or link anyone can recommend

that
discusses this topic in detail?
Thanks in advance!

Dan H.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF Statements to Select Case??? Walter Excel Discussion (Misc queries) 2 December 2nd 09 08:00 PM
Excel MS Query multiple select statements Revenger Excel Discussion (Misc queries) 3 May 12th 06 12:32 PM
How do I Select Multiple entries from Valid list for a Cell WIDBIS Excel Discussion (Misc queries) 1 June 29th 05 12:53 AM
Select statements on the same sheet? Andy Excel Programming 0 August 11th 04 10:13 AM
Using Select Case Statements Bob[_53_] Excel Programming 3 April 30th 04 08:58 PM


All times are GMT +1. The time now is 12:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"