>msgbox "the name of the sub form you clicked on is " & frmSub.RecordSource. should read msgbox "the name of the sub form you clicked on is " & frmSub.Name