we find the error where there is Subform including on the form on below line,
DoCmd.RunCommand (acCmdFormView).
and when i remove the subform it works fine.
I am calling on the button of menu bar.