Thanks for all the suggestions. I think I have everything working now with an amalgam of the code suggested. Things were further complicated because I needed to drag and drop text into the field from a datagrid. Pete Molly's Revenge <http://www.mollysrevenge.com>