I have a function for importing an excel file into a ready table.However I want to change the names in the tables and this function does not allow me to do it. The function is :
Dim strFile As String
strFile = “C:BESpots.xls”
DoCmd.TransferSpreadsheet _
TransferType:=acImport, _
SpreadsheetType:=acSpreadsheetTypeExcel97, _
TableName:=”Limits”, _
FileName:=strFile, _
HasFieldNames:=True
For example, the first coloumn in excel is called Trucks and I want to import that coloumn in the field called Transport.How can I change my function ?