Colin,
Are you trying to prevent it from looping back to the top textbox when the user presses enter on the last textbox? This will prevent that...
LPARAMETERS nKeyCode, nShiftAltCtrl
if (nKeyCode = 13 or nKeyCode = 9) and nShiftAltCtrl = 0
nodefault
endif
>Steve
>
>As i move around the form i get to a point where i want to stop the cursor moving on. The only way i can think of doing it is to jump to a trxt box which is the last object in the tab order
Steve Gibson