The 3 field I'm looking at are second returned length, first returned length and received length. I want query to start with second ... field and when is it see's it emty to go on to the first ... field and if its empty to go to th receivrd field . any help wold be greatly appreciated I have a fiew situation I can use this scenario.