Is the 'default' property of the commandButton set to .t.?
>I have a grid and a command button on form (where else).
>Command button click has code I want to run.
>Form is previewing all key strokes (thisform.KeyPreview = .T.)
>KeyPress event fires code in the command button click when nKeyCode is 13.
>User clicks command button and life is good.
>If focus is on the grid and user presses enter key, code in command button is run exactly twice.
>
>WhatUpWitDat?
>
>Clueless in Garden Grove
Steve Gibson