I have a form with subforms. On one of the subforms, I've added an onclick event.
With the code below, I'm wanting to open up a Companies form filtered to the value that is selected of the CompanyName field within the subform
DoCmd.OpenForm "frmCompanies", , ...