Something like:
CurrentDb.Execute "DROP TABLE tblMyTableNameHere"
DoEvents
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblMyTableNameHere", "C:\myExcelFile.xls", -1, "Sheet!A1:B100"
Change tblMyTableNameHere to your table name, C:\myExcelFile.xls to the location of the file name and Sheet!A1:B100 to the range of where this data is.
Post back if you get stuck (first take a look at TransferSpreadsheet in the help)
Dave
Main Topics
Browse All Topics





by: amjadfarooq26Posted on 2008-03-17 at 16:50:20ID: 21147424
i would appreciate your help in soving the above problem.