#1   Report Post  
Posted to microsoft.public.access.externaldata,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Web Query

I am looking for the a way to address the following scenario, there are a
number of different options but I would like to hear opinions on the best
approach.

I have an Access database with a table of stock codes
I wish to periodically obtain the price of from the web for each code in the
table.
Once the price has been "read" from the web I would like to store it in a
price history table.


The options to date I have a

Solution: Code in Access to create and Excel object, perform a web query for
each stock code then read and store the value in Access
Problem: Controlling the Excel web query from Access
Problem: Knowing when each web query has completed before attempting to read
the value, store it the loop again

Solution: Code in Excel to access the database, read the codes table,
perform web query, store the value in the database.
Problem: Using two applications as opposed to one as the database is the
main app
Problem: Knowing when each web query has completed before attempting to read
the value, store it the loop again

I have read an article about linking a HTML page to access as a table
however I have been unable to get it to work, however this would be linking
and then relinking the table for each stock that I need to check the price
of.

Comments welcomed and thanks.


  #2   Report Post  
Posted to microsoft.public.access.externaldata,microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Web Query

Check out this website:

http://www.vertex42.com/News/excel-web-query.html

It's a primer on Excel web queries and includes a template for pulling
multiple stock prices.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Murphy" wrote:

I am looking for the a way to address the following scenario, there are a
number of different options but I would like to hear opinions on the best
approach.

I have an Access database with a table of stock codes
I wish to periodically obtain the price of from the web for each code in the
table.
Once the price has been "read" from the web I would like to store it in a
price history table.


The options to date I have a

Solution: Code in Access to create and Excel object, perform a web query for
each stock code then read and store the value in Access
Problem: Controlling the Excel web query from Access
Problem: Knowing when each web query has completed before attempting to read
the value, store it the loop again

Solution: Code in Excel to access the database, read the codes table,
perform web query, store the value in the database.
Problem: Using two applications as opposed to one as the database is the
main app
Problem: Knowing when each web query has completed before attempting to read
the value, store it the loop again

I have read an article about linking a HTML page to access as a table
however I have been unable to get it to work, however this would be linking
and then relinking the table for each stock that I need to check the price
of.

Comments welcomed and thanks.



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
Convert hard coded query criteria to Parameter Query Melanie[_2_] Excel Discussion (Misc queries) 0 July 15th 08 09:59 PM
Excel 2007 / MS Query - editing existing query to another sheet Hotpepperz Excel Discussion (Misc queries) 0 June 13th 08 06:53 PM
Importing Data via Web Query - Can values be passed to query? [email protected] Excel Discussion (Misc queries) 5 May 9th 06 06:21 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 0 November 28th 05 06:37 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 02:04 PM.

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"