That means you have no object on the form that is called "Menu1".
Menus are independent objects, not part of a form.
>thank you for reply,
>error message Unknown member menu1
>
>>>hi all,
>>>
>>>i need to hide main form and sub form as below
>>>
>>>thisform.hide()
>>>
>>>thisform.menu1.hide()
>>>
>>>report form report1 preview
>>>
>>>thisform.show()
>>>
>>>thisform.menu1.show()
>>>
>>>thanks
>>
>>Have you tried working with the visible property instead?
>>thisform.visible = .F.
>>thisform.menu1.visible = .F.
>>report form report1 preview
>>thisform.visible = .T.
>>thisform.menu1.visible = .T.
>>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)