Hi,
I am trying to import an excel file into an Access Mdb. I commence with the following code:
Dim oWkb As Excel.Workbook
Dim oWSht As Excel.Worksheet
Dim i As Integer
Dim importWB As Workbook
Set oApp = CreateObject("excel.application")
Set oWkb = oApp.Workbooks.Open("C:\Dokumente und Einstellungen\H84461\BBRIAccountPRM.xls")
Set oWSht = oWkb.Worksheets("_result_bbRIAccountPRM")
DoCmd.SetWarnings False
While oWSht.Range("A" & i).Value <> ""
but how do I actually import the data into a new table in the Acces.mdb????
Thanks in advance
I am trying to import an excel file into an Access Mdb. I commence with the following code:
Dim oWkb As Excel.Workbook
Dim oWSht As Excel.Worksheet
Dim i As Integer
Dim importWB As Workbook
Set oApp = CreateObject("excel.application")
Set oWkb = oApp.Workbooks.Open("C:\Dokumente und Einstellungen\H84461\BBRIAccountPRM.xls")
Set oWSht = oWkb.Worksheets("_result_bbRIAccountPRM")
DoCmd.SetWarnings False
While oWSht.Range("A" & i).Value <> ""
but how do I actually import the data into a new table in the Acces.mdb????
Thanks in advance