Wondering anyone could help me with this. I don't have any problem without condition but If I put If then Else condition then I'm getting syntax error.
Simple value: App.GetYear(Date(),"GL") - no problem with this input.
Conditional VAlue: (If App.GetPeriod(Date(),"GL")-1 = 0 Then App.GetYear(Date(),"GL")-1 else App.GetYear(Date(),"GL") end if) - Resulting Syntax error (1002).
Appreciate any help.
Simple value: App.GetYear(Date(),"GL") - no problem with this input.
Conditional VAlue: (If App.GetPeriod(Date(),"GL")-1 = 0 Then App.GetYear(Date(),"GL")-1 else App.GetYear(Date(),"GL") end if) - Resulting Syntax error (1002).
Appreciate any help.