Sub import2()
Dim con As Object
Dim sSQL As String
Set con = CreateObject("ADODB.Connection")
con.Open _
"Provider=Microsoft.ACE.OLEDB.12.0;" & _
"Data Source=E:\tests\htmlimport\bsp.htm;" & _
"Extended Properties=""HTML Import;HDR=YES;IMEX=1"";"
sSQL = "INSERT INTO [" & CurrentDb.Name & "].MyData(ID, Lastname) SELECT ID, Lastname FROM [Test Data]"
con.Execute sSQL
con.Close
Set con = Nothing
End Sub