>Hi,
>
>How to click a button lying on a form thru a short cut menu. On doing so, I face an error "THIS can only be used within a method."
>
>The actual command is 'This.parent.cmdSales.Click'
>
>Please suggest .. Saif
Menu code runs as a separate external program from the form. You will need to use the form object reference to get the button as in;
DO FORM MyForm Name MyForm
In the menu's code you would;
MyForm.cmdButton.Click()