Hi
I want to inport an excel spreadsheet into access
I can use this code, but the file path to the spreadsheet is not always the same, so I would like to open the windows dialoge box to select the file to inport
DoCmd.TransferSpreadsheet transfertype:=acImport,tablename:="Hours Worked", filename:="C:/Personnel/Hours Worked.xls",HasFieldNames:=True
How do I do this?
I want to inport an excel spreadsheet into access
I can use this code, but the file path to the spreadsheet is not always the same, so I would like to open the windows dialoge box to select the file to inport
DoCmd.TransferSpreadsheet transfertype:=acImport,tablename:="Hours Worked", filename:="C:/Personnel/Hours Worked.xls",HasFieldNames:=True
How do I do this?