Hi, I'm having a bit of trouble importing an excel spreadsheet because the sheet name has a space in it.
Simplistically this is my code:
Now that doesn't work because the jet engine can't find it.
If, however, I rename the sheet to "AllFeatures" (remove the space) and use the same code:
It works fine.
Problem is, I can't rename that as so much else hangs off it and I don't own it. So is there anything I can to do get around this?
Simplistically this is my code:
Code:
DoCmd.TransferSpreadsheet acImport, 8, "ID_Latest_Temp_i", "INFORM - Increments Document.xls", True, "All Features!i:i"
Now that doesn't work because the jet engine can't find it.
If, however, I rename the sheet to "AllFeatures" (remove the space) and use the same code:
Code:
DoCmd.TransferSpreadsheet acImport, 8, "ID_Latest_Temp_i", "INFORM - Increments Document.xls", True, "AllFeatures!i:i"
It works fine.
Problem is, I can't rename that as so much else hangs off it and I don't own it. So is there anything I can to do get around this?