Check the manual for examples of how to use KeyExist(). Combine it with IF...Endif and I think you will have the code you want.
_________________________
Home page: http://www.kixhelp.com/hb/