For Access 2010 - it will be similar in other versions
first convert the macros to vba code. you do this in each form/report design view, click on design tab in ribbon and choose the convert option on the far right
next open file>options>object designers and tick 'always use event procedures' in the form/report design view section