>I would just do this in the Valid for the Editbox instead. Use ALINES() to populate an array with the contents of the editbox. If alen() of the array is greater than three, then they've got too many lines. Then loop through each row of the array and see if the len() greater than 40.
The only problem with using the valid() event is that it doesn't fire until right before the control looses focus. Using the interactivechange or keypress event checks the value as you are typing.
Einar
Semper ubi sub ubi.