Hi Nadya,
> You don't need to call keypress from valid -
NEVER DO THIS . If you do this, you screw up the sequence of events. KeyPress is an EVENT (not method) and it called automatically while you're typing something on keyboard.
PMFJI,
Yes and no. Calling KeyPress() (the method) will run the code that is executed when the Kepress Event fires. You will not cause the event by doing this. (To cause the KeyPress Event, use the Keyboard command, I believe.) I agree, however, calling the KeyPress() method in the valid is not good design.
Bill Armbrecht
VFP MCP