Hi Member,
I got the code below to import data from excel to an MS Access table. The code works but is very very slow. It takes over 1.5 minute to import the data. Number of rows in the excel data file is 120000 and number of colums are 110. How can I make this faster?
//Paul
Dim objAccess As Object
Set objAccess = CreateObject("Access.Application")
objAccess.Visible = False
objAccess.OpenCurrentDatabase C:\TEMP\TEST.accdb, Exclusive:=True
objAccess.DoCmd.TransferSpreadsheet acImport, 10, "TEST", Environ("temp") & "\TEST.xlsx", True
I got the code below to import data from excel to an MS Access table. The code works but is very very slow. It takes over 1.5 minute to import the data. Number of rows in the excel data file is 120000 and number of colums are 110. How can I make this faster?
//Paul
Dim objAccess As Object
Set objAccess = CreateObject("Access.Application")
objAccess.Visible = False
objAccess.OpenCurrentDatabase C:\TEMP\TEST.accdb, Exclusive:=True
objAccess.DoCmd.TransferSpreadsheet acImport, 10, "TEST", Environ("temp") & "\TEST.xlsx", True