>How can trap the f2 key on the keypress event? I not get any value, on keypress f3 I get -3
Check out the INKEY() command for the values returned. Are you sure you don't have any ON KEY LABELS set as the keypress should work. Check the state of your KeyPreview form property.
HTH
Caroline
Caroline