I'm taking data from text files using a variable=ImportFileName found through a FileSearch that looks for *.txt on a directory. Run TransferText to import data and even though they are "import errors" every time (the field types are set in such way to descriminate data that doesn't has the correct format), I need to automatically erase the ImportErrors table as the user will never use it and it willkeep growing endlessly as the source name is not the same.
The problem is the ImportFileName gives me the full path while the ImportErrors table is created using only the filename. Do anyone know how to select only the last part of the variable so I can add "_ImportErrors" to the variable and get the table name?
Thank you very much for your interest and help
Patricia
The problem is the ImportFileName gives me the full path while the ImportErrors table is created using only the filename. Do anyone know how to select only the last part of the variable so I can add "_ImportErrors" to the variable and get the table name?
Thank you very much for your interest and help
Patricia