>It doesn't let me edit a record if another user is editing but it doesn't disable the controls. Can you please shed some light on WHEN procedure.
WHEN allows or disallows a control receiving focus (becoming selected) - if the WHEN Event returns .T., the control receives focus, if WHEN returns .F., the control does not receive Focus. WHEN does not affect the visibility of the control, or the enable state of the control.
If you need to alter the visual aspect of the control (change its .visible or .enabled property, for example) before the user can even attempt to select it, you need to make those changes whenever the condition(s) that determines whether or not it should be allowed to gain focus change state.
Ed