>Hi Dennis,
>
>Why not to define a variable outside Report as Public and change its value in BeforeOpenTables.
>
>As per what i checked the report variable was not getting changed in BeforeOpen Table Event.
>
>Aashish
>
>>Can I add a report variable to a report and set that variable from say the BeforeOpenTables event?
>>
>>tks
It is not necessary to define the variable as public at all, even a local in the calling routine is visible to the report. There are very few situations where the public declaration is required. One could write code in VFP for years and never encounter one.