Mathias,
Assuming the procedure you want to call is SetButtons, and the name of the main form is MainForm...
In the OnChange event of the cell in the subform use the code:
Forms!MainForm.SetButtons
or
Parent.SetButtons
David.
>I have a function that disables some controls and enables
/ when you start editing data on the main form.
>
>This form has a subform (Datasheet). I would like to be able to call the function that enables / from within the datasheet on the on Change event in a cell.
>
>The trouble is by default Access only has On Enter and On Exit events on a subform that fire functions from the main form.
>
>How do I get round this? In short how do I run a function on the main form from a subform?
>
>Mathias
David.