Results 1 to 9 of 9
  1. #1
    ser01 is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Posts
    64

    Populating table with data from the Web

    I have a database that does a lot of different things. I would like to add a feature to it, and have no clue of how to even begin approaching. Basically I would like to have a table with the weather in a specific area. I would like to be able to get the weather data from a web site. Since most weather websites do not keep historical weather data I would update the table on daily basis. I need this data to use next year to help me forecast the sales. I am in business that is very weather dependent. Right now the weather is being tracked with the old fashioned "paper and pencil" method and I am looking for something more efficient.


    Any suggestions would be very appreciated. Thank you in advance.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    so you want to gather data from web pages using access only?

  3. #3
    ser01 is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Posts
    64
    Quote Originally Posted by ajetrumpet View Post
    so you want to gather data from web pages using access only?
    That's correct. I would like to point it to a URL and then have the ability to pick which data I would like to collect and where it would go.

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    well that's tough using vba. You should really try to find a utility that you can use somewhere on the web.

    picking data by "choice" using vba is next to impossible because the code would just get outrageous. Have you ever worked with the DOM in VBA before?? It's almost as annoying as writing strait HTML code. Probably because it IS just basic HTML code.

    if u gave a sample of a web page that you would want to take data from, the answers from me would get a little better, in the form of advice on what to do...

  5. #5
    ser01 is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Posts
    64
    Quote Originally Posted by ajetrumpet View Post
    well that's tough using vba. You should really try to find a utility that you can use somewhere on the web.

    picking data by "choice" using vba is next to impossible because the code would just get outrageous. Have you ever worked with the DOM in VBA before?? It's almost as annoying as writing strait HTML code. Probably because it IS just basic HTML code.

    if u gave a sample of a web page that you would want to take data from, the answers from me would get a little better, in the form of advice on what to do...
    So what you're saying is find a utility to pull the data from the web and process it into an Access friendly format. Then use VBA to retrieve the processed data from like a locally stored .txt file?

  6. #6
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by ser01 View Post
    So what you're saying is find a utility to pull the data from the web and process it into an Access friendly format. Then use VBA to retrieve the processed data from like a locally stored .txt file?
    ser,

    I'm not really saying anything in terms of what method to use. Unfortunately I can't tell you "everything" about what I would do. That would be a consulting meeting with me.

    but to give you a examples of how complicated using VBA is to modify the DOM and/or pull data from a web page, first see here: http://www.access-programmers.co.uk/...d.php?t=176968

    most methods in HTML are available in VBA, but there are no shortcuts, and the processing is slower because vba has to communicate with another program, whereas HTML only has to process in a browser when a webpage is loaded.

    if you want advice on the EASIEST way to pull data from a web page, I can certainly suggest a few. but you also have to tell us:

    • where to put the data
    • whether the data will always be in tables on the webpage
    • and in what format, if any, the data should end up in


    for instance, data comes from webpages in all sorts of formats. sometimes in xml, in HTML, or plain text.

  7. #7
    ser01 is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Posts
    64
    Quote Originally Posted by ajetrumpet View Post
    ser,

    I'm not really saying anything in terms of what method to use. Unfortunately I can't tell you "everything" about what I would do. That would be a consulting meeting with me.

    but to give you a examples of how complicated using VBA is to modify the DOM and/or pull data from a web page, first see here: http://www.access-programmers.co.uk/...d.php?t=176968

    most methods in HTML are available in VBA, but there are no shortcuts, and the processing is slower because vba has to communicate with another program, whereas HTML only has to process in a browser when a webpage is loaded.

    if you want advice on the EASIEST way to pull data from a web page, I can certainly suggest a few. but you also have to tell us:

    • where to put the data
    • whether the data will always be in tables on the webpage
    • and in what format, if any, the data should end up in


    for instance, data comes from webpages in all sorts of formats. sometimes in xml, in HTML, or plain text.
    Actually that link helps a lot. Thank you

  8. #8
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    no problem. post back if ya need help

  9. #9
    Jac0blee is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    4
    I'm wanting to do a similar thing, what would be a good utility to do this with?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Populating Null Data with Next Available Record
    By Kimbertha in forum Programming
    Replies: 6
    Last Post: 09-25-2010, 11:02 AM
  2. Populating a form with table data!
    By Extracash in forum Forms
    Replies: 6
    Last Post: 09-13-2010, 05:47 AM
  3. Form data not populating in table
    By sabrown in forum Forms
    Replies: 0
    Last Post: 08-27-2009, 08:19 PM
  4. Replies: 4
    Last Post: 06-10-2009, 12:43 PM
  5. Populating Data in forms
    By cjbeck71081 in forum Forms
    Replies: 4
    Last Post: 01-16-2007, 04:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums