Go to DesignView.
Click the subform control twice to activate the subform, then pick code module from the band.
Right click the view, select , Script View as, CREATE To. New query editor window
Turn on the Developer Tab in Excel
Go into Design Mode
Right-click any control and View Properties