>>Ok,
>>
>>I got it to kind of work. The problem is I have to go into the textbox twice for it to work. When I hit enter the first time it doesn't do anything. When I go back and put the cursor in the textbox again and press enter again then it works. Why could this be?
>>
>Tyler,
>
>Why not simply check the value of LASTKEY() in the Valid event?
LASTKEY() will return whatever the most recent keystroke was, which might not be the one that fired the Valid()! INKEY() takes the next available keystroke from the head of the keyboard queue, but LASTKEY() returns the tail of the queue...