Hi Barbara
Probably u can give a select statment in the menu code .
which will select the appropriate report table.
Hope this helps
>Is the report running in a private datasession? If not, you may need to access one or more of the tables in the form datasession.
>
>Also, be sure the last line before calling the report is a SELECT for the main report table.
>
>HTH
>Barbara
>
>>I have a procedure that when run from a button on my form runs fine. It requeries some views , assigns some variables values and runs a report form. From the button the report generates correctly, but when launched from a procedure on the menu on the same form the report does not generate correctly, it appears as if the wrong table or view is selected. What is the difference between lanching the code from the form and from the menu?
Regards
Hiten K M
( The best and the worst are yet to come .. keep coding ! )
My Resume >>