>Ok, here is one for ya (VFP6 SP5):
>
>I've been asked to not only impose a limit on the number of typed characters in a combobox (style 0), but to also halt the ability to type any more after the limit is reached. Since comboboxes don't have a MaxLength, I'm using the InputMask, and setting CONFIRM appropriately in the When and Valid so they don't leave the field. No big deal. The issue comes with the fact that after the limit is reached, the users
can keep typing, overwriting the last character. (I've also noticed that this occurs in textboxes as well.)
>
>Is there a property or setting I'm missing that prevents this? Or does this have to be coded in the InteractiveChange/Keypress?
>
>I'm trying to avoid being hit with the "Access doesn't do that" statement...
>
>Thanks,
>
>- Brian
Try coding in the interactivechange event...
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown