I almost feel embarrassed to ask this having programmed in gambas for so long, but here goes. simplest syntax for testing for no text in a textbox. I currently to if Trim(textbox1.text) = "" then etc. Anything better? Richard