Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prompt Text Formula

Status
Not open for further replies.

zsyed

MIS
Dec 25, 2011
73
CA
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.
 
I am assuming that you are using BASIC syntax in the formula editor, otherwise it should like this (If App.GetPeriod(Date(),"GL")-1 = 0 Then App.GetYear(Date(),"GL")-1 else App.GetYear(Date(),"GL"))
 
I'm sorry I should have been more specific. This formula is being entered in Edit Parameter Field instance, in Prompt text field under value options. I tried with suggested syntax without end if, still I get error 1002.
 
I have never tried to use a formula in here. Outside of my knowledge.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top