Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Web query results in a recordset?

Does anyone know if it is possible to return a web query (e.g. for stock
info) to be returned in a recordset using ADO, perhaps using a Stream?

If so, could you please post example code?

Thanks much in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Web query results in a recordset?

Hi quartz,

quartz wrote:
Does anyone know if it is possible to return a web query (e.g. for
stock info) to be returned in a recordset using ADO, perhaps using a
Stream?


Does this thread help?

http://groups-beta.google.com/group/...dbf506ee96f d

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Web query results in a recordset?

Thanks again Jake. Is it possible to tweak your code to just get certain
pieces of data rather than the whole file?

I am just looking for certain stock information residing on web sites...

Also, where can I find more example code using Stream, and learn more
about what it is for, etc.?

"Jake Marx" wrote:

Hi quartz,

quartz wrote:
Does anyone know if it is possible to return a web query (e.g. for
stock info) to be returned in a recordset using ADO, perhaps using a
Stream?


Does this thread help?

http://groups-beta.google.com/group/...dbf506ee96f d

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Web query results in a recordset?

Hi quartz,

Thanks again Jake. Is it possible to tweak your code to just get
certain pieces of data rather than the whole file?

I am just looking for certain stock information residing on web
sites...


You could use Instr, Mid, etc. to look for specific elements in the
responsetext. You may be able to work directly with the document using the
DOM (document object model), but I'm not sure of how to integrate that with
the XMLHTTP object.

Another option would be to automate IE (InternetExplorer.Application
object), navigate to a URL, then parse the document as needed by using
Document.GetElementById("elementname") or similar. But that requires that
the HTML elements you need have IDs, which most don't.

Also, where can I find more example code using Stream, and learn more
about what it is for, etc.?


Here's a page that gives a good overview, although it's targeted more to the
web development crowd. You could do a search of MSDN, and you'll probably
find too much info there. <g

http://www.w3schools.com/ado/ado_ref_stream.asp

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Web query results in a recordset?


quartz wrote:
Does anyone know if it is possible to return a web query (e.g. for

stock
info) to be returned in a recordset using ADO, perhaps using a

Stream?

Any particular reason for the 'web query' and 'ADO stream/recordset'
combination? For example, why not an 'XML web service' and 'MS Office
SOAP Toolkit' combination, for example?

Jamie.

--

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
query a recordset SAm Excel Discussion (Misc queries) 2 May 1st 07 09:33 PM
How query a disconnected ADO recordset - possible? quartz[_2_] Excel Programming 5 December 2nd 04 09:02 AM
Copy recordset from an Access "make table" query Laurie[_4_] Excel Programming 1 February 5th 04 09:45 AM
Query Results Michael Burkett Excel Programming 1 November 11th 03 07:46 PM
DAO query/recordset returns with field names Seth[_4_] Excel Programming 0 August 18th 03 08:36 PM


All times are GMT +1. The time now is 06:30 AM.

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

About Us

"It's about Microsoft Excel"