>Sorry, I didn't got that.
>
>Suppose I am getting a value say _MonthPeriod='April' and _YearPeriod=2013 from CLICK event of COMBO1 and COMBO2 in my FORM1. and Than When I press COMMAND1 some calculation is performed and REPORT FORM .... Command is executed. In My Report File I have _MonthPeriod and _YearPeriod fileds. But they are displayed blank if I dont declare _MonthPeriod and _YearPeriod as PUBLIC somewhere initially,
>
>So I am bound to declare them as Public here. Is it not so ? Also can you please Expalin(preferbly by an example) that what exactly is difference between LOCAL, PUBLIC,PRIVATE AND GLOBAL? Where and How they should be used
>
>
>
Try
local _MonthPeriod, _YearPeriod
_MonthPeriod = thisform.comboMonths.value
_YearPeriod = thisform.comboYears.value
REPORT FORM myReport ...
----------------------
Take a look at this WiKi article
http://fox.wikis.com/wc.dll?Wiki~PublicAndPrivateVariablesFor 99% cases you should be able to use local variables. You rarely need global (public) variable and if you do, most likely it is an indication of the design problem.
If it's not broken, fix it until it is.
My Blog