Hi - the first statement results in this :
Your second one works perfectly on test, however when I apply it to the *real* query it falls over with on ODBC call error - I'm using ODBC to link to
an ancient Cobol based system ( something called cTreeSQL !!)
But thanks for trying and for...