>Thanks for the reply and code. I have tried a few days ago, and again now to get your code to work.
>I have created a test form with just a textbox and a grid. However I keep getting the error message "Property domimic not found" when the form is run. (it does not find it in the grid code : if thisform.domimic ) Do I need to put this "domimic" somewhere else on the form ?
Oh sorry. It's a new property added to form (open form in designer, select form menu and add new property).