Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

import from EXCEL to ACCESS, HELP !!!

Status
Not open for further replies.

hysaccess

Programmer
May 27, 2003
12
AU
Hello all

Oh, here's the deal I have information in Microsoft Excel, which I need to process and append to the access database.

So I first import the data from excel to access on a temporary table using:

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblTemp", strRet, False, "Sheet1!A2:N65536"

Having done that now i need to cycle through each record in the temporary table and send it into the production database with those who satisfy my SQL statement ...

I need all this to be done programmatically... HELP
 
Hi Hysaccess,

Why don't you just cycle through your excelfile and do all checking there and if the record is satisfactory send it to Access with .addnew and .update?
So without using your temporary table....
 
Have you tried to link to this .xls from within access...

File>Get external data>link tables...

choose msexcel from files of type...follow the wizard from there.


that way you can use the spreadsheet as though it were a table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top