>Hi Caroline
Thanks for the suggestion. I used something like your idea and it worked well.
Regard,
Carmen
Carmen,
>
>You can try something like the following in that Valid event.
>
>loObject = sys(1270)
>
>if lastkey() = 27 or (type('loObject.Cancel') = 'L' and loObject.Cancel)
> return .T.
>else
> return 0
>endif
>
>
>>Hi Steve
>> Again good questions. These human generated numbers must be unique or they won't be accepted by the system. After the order number is in the system the user may change it and yes the changes cascade through the details of the order and the w.i.p. already entered. This has never been done that I can see. The usual approach is to delete the order and create a new one. Thanks for the tip re: return zero. Let me ask you this. While I can now keep them a captive audience until an order number is entered, I also have an abort button that should allow them a way out. If I use return .f., or return zero, it won't let me at the abort button. Any thoughts? Thanks again Steve.