I have written a programme that enter data, if the data is the wrong sort an error code appears what I am after is a piece of code or function that will remove the faulty entry and place thhe curser back ware it was before the faulty code was entered. Any help would be appriectated