G
Guest
hi,
I need to import two excel file into a table of access by click button, is
these possible and do you let me know how to do that. I try to use the
following code to test, it will be conflicted and prompt up error.
Private Sub Command0_Click()
ImportXL
ImportXL2
End Sub
Function ImportXL()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, _
"IMSI Range", "C:\is.xls", False, "IMSI RANGE!B6:N98"
End Function
Function ImportXL2()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, _
"IMSI Range", "C:\aa.xls", False, "sheet1!A1:A3"
End Function
Thanks
I need to import two excel file into a table of access by click button, is
these possible and do you let me know how to do that. I try to use the
following code to test, it will be conflicted and prompt up error.
Private Sub Command0_Click()
ImportXL
ImportXL2
End Sub
Function ImportXL()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, _
"IMSI Range", "C:\is.xls", False, "IMSI RANGE!B6:N98"
End Function
Function ImportXL2()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, _
"IMSI Range", "C:\aa.xls", False, "sheet1!A1:A3"
End Function
Thanks