I have the following formula for example the month of July. When the record displays it will show that data for July 2008. But I keep getting an error in the formula. If the data is in the current year and the month of July it needs to show the calculation of {Delivery.Promised_Quantity}*{Job.Unit_Price}. Thanks for any guidence and advise.
.....................
local Datevar m:= MonthName(7);
local numbervar y:= year(today);
if month({Delivery.Promised_Date}) = Month(7)//July
and year({Delivery.Promised_Date}) = y then //current year
{Delivery.Promised_Quantity}*{Job.Unit_Price}//then show data
...........................
.....................
local Datevar m:= MonthName(7);
local numbervar y:= year(today);
if month({Delivery.Promised_Date}) = Month(7)//July
and year({Delivery.Promised_Date}) = y then //current year
{Delivery.Promised_Quantity}*{Job.Unit_Price}//then show data
...........................