Hi, I am using the below code. How can I ajdust the code so that row one in excel is ignored? Row one cell one ("a1") has a date which I want to copy to a textbox in an access form - I am not sure how to do that;
Row two has the field names and the remaining rows have the data. Those I would like to simply transfer to the table. Thank you for any help!
Row two has the field names and the remaining rows have the data. Those I would like to simply transfer to the table. Thank you for any help!
Code:
Sub MyCopy()
DoCmd.SetWarnings False
DoCmd.RunSQL ("Delete FROM Table")
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "table", "a long file path with workbook name.xlsm", True
DoCmd.SetWarnings True
End Sub