You can also use the code I gave you before to bring in the data then save the file as whatever you want. You can create a table directly in your database to store the data. You can create a delete query to delete out the data. Say you name it "DelDta". Then you can import your new data directly into the table. Your code would work as follows:
Code:
Set dbs = CreateObject("Access.Application")
dbs.OpenCurrentDatabase "C:\Database\MyDatabase.mdb" (Whatever your database name is)
dbs.Visible = True or dbs.visible = false (your preference)
With dbs
dbs.DoCmd.OpenQuery "DelDta", acNormal, acEdit (This is the qry to delete the existing data from the table)
dbs.DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9,
"NewData"(This is the name of your table in access),
"C:\TxtHlpr.xls"(this is the name of your file), True, "MyDatadb" (This is the name of the spreadsheet)
End If
dbs.CloseCurrentDatabase
End With
dbs.Quit
You have to ensure that the data in your spreadsheet is formated according to the formats you set up in your table.
Good Luck
S.