in reply to help on searching a file

DaWolf, in your search database sub routine, results is splitting the line into 6 variables instead of 5 variables, which counters what your original code seems to be expecting.