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
Barry Taft
i am only worried in the short term. once there is a problem, the solution usually presents itself.