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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing excel file to existing table using code

Status
Not open for further replies.

RamziSaab

MIS
Joined
May 7, 2003
Messages
522
Location
GB
how can u import to a table without deleting existing data in the table...the import wizard has the option but cnt seems to find it in the code??

thnsk
 
use append

Bastien

cat, the other other white meat
 
I am using:

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, strtblname2, Me.txtXLFIle.Value, True, "Access File!" (where do i put append in this?)
 
doing a little research i think what you might need to do is place the data in a temp table and then run an append query to attach the data from the temp table to the main table then delete the temp table

Bastien

cat, the other other white meat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top