Steven,
I'm afraid I don't understand, what you proposed. What is ekp? Why it should be Public? I don't think Public is a good idea at all, and you can see several Jim B. postings about using 'Public'.
I was thinking about valid/LostFocus method, in which I should go through all lines in editbox and check len(alltrim(mline(...))=5 and isnumeric(). But may be this approach is not sufficient.
>This might work
>
>In the GotFocus of the EditBox set ekp = 1 and Public ek1
>
>In the keypress Event of the editbox put:
>
>If ekp < 5 Then
> ekp = ekp + 1
>Else
> KEYBOARD'{Enter}'
> ekp = 0
>EndIf
If it's not broken, fix it until it is.
My Blog