The code should be something like:
*provided* that FNoAllowSub is the name of the Subform *Control* which can
be the same or different from the name of the Form you used as the Subform
(more accurately, you used as the SourceObject of the SubformControl).
OTOH, I would not recommend the KeyDown Event as the key you press will go
into the Control NoAllow if it accepts data entry (unless you cancel the