>Do you know what is wrong in my implementation and what would be the best way to fix it?
>
Move the code to the textbox Keypress event and use nodefault if space is entered.
Like
IF this.lNoSpacesAllowed and nKeyCode=32
NODEFAULT
ENDIF
Brandon Harker
Sebae Data Solutions