Can't set Visible property from a parent menu

Error 388

 

The Visible property of a submenu item cannot be set from its parent's menu code.