Hi
I am using MS Access 2010 and one import specification (called: excel1 import specification) is created in the application. Please advise how to modify the following codes so that this import specification will be used for the excel file imported:
QUOTE
Dim db As DAO.Database
Set db = CurrentDb
On Error Resume Next
db.TableDefs.Delete "PBXRAW"
On Error GoTo 0
db.TableDefs.Refresh
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12Xml, "PBXRAW", "D
AB.xlsx", True
db.TableDefs.Refresh
db.Close
Set db = Nothing
UNQUOTE
Regards
Bill
I am using MS Access 2010 and one import specification (called: excel1 import specification) is created in the application. Please advise how to modify the following codes so that this import specification will be used for the excel file imported:
QUOTE
Dim db As DAO.Database
Set db = CurrentDb
On Error Resume Next
db.TableDefs.Delete "PBXRAW"
On Error GoTo 0
db.TableDefs.Refresh
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12Xml, "PBXRAW", "D
db.TableDefs.Refresh
db.Close
Set db = Nothing
UNQUOTE
Regards
Bill