Discussion Locked

Importing external data into Access DB

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Need to take data from a web page and import that data into an Access 97 database to update an existing field. How is the best way to do this?

10 replies

by mtnsqs

Access can inport HTML data directrly- FILE- Get External Data- Import and select HTML as the format.

If you actaully have a table in the HTML which is data then export it from HTML as CSV or copy and paste into an Excel file and import that intoAccess.

by tlemmiksoo

The Access DB needs to be updated by the data in the Web page table. Not to creat a new table. Only 1 field needs updating.

by mtnsqs

Now you are giving mor einformation - still very simple - Import the html data into a temporary table. Then write a simple script to select items that match the original tabl e(I assume the HTML table has a matching field to the original table) andupdate/add the data into the original table. The hardest thing will be ensuring that your match fields are the same format so that you get the correct matches.

by garlin

Actually, my answer would be similar to the previous one, except I would probably use VB in the Access database to open an Excel workbook, which in turn would grab the page from the web and get the desired input. I would employ Excel because it has built-in functionality to parse a web page and extract data. This data would be extracted into a cell on the workbook. The VB in Access would then open the appropriate record in the table and update the value.

by tlemmiksoo

How does one get VB to update the record in the table with the data from the Excel workbook?

by parier

copy the data from the page, paste into EXCEL and save as comma dilemeted. Then open in access as IMPORT.
Is this page on the internet, I can do it and email it to you let me know the url and a address to send it to - I am at eparisek@mtga.com

Hope this helps!

This discussion is closed to new replies.