Function TS_Import()
On Error GoTo TS_Import_Err
Dim TS As Integer
' Sample Worbook names : 00498, 40194 etc...
DoCmd.SetWarnings False
For TS = 1 To 99999
DoCmd.TransferSpreadsheet acImport, 8, "Staff", "L:\Time\" &
Format(TS, "00000") & ".xls", True, "Summary!"
Next TS
DoCmd.SetWarnings True
TS_Import_Exit:
Exit Function
TS_Import_Err:
Resume Next
Resume TS_Import_Exit
End Function
'Where did I go wrong ? Thank you for your help. Celeste Edwards.