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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula that include Ranages >= And <=

Status
Not open for further replies.

RachelK

Programmer
Mar 18, 2002
171
GB
I am enetering the week from and the week to as a parameter
I have a formula that says:-

If {VIEW_TM_WSTG.WE_NO} >= ToNumber({@WeekFrom}) Then {VIEW_TM_WSTG.WE_NO} Else 0

Which works I would like the Formula to say..

If {VIEW_TM_WSTG.WE_NO} >= ToNumber({@WeekFrom}) And <= ToNumber ({?WeeekFrom})Then {VIEW_TM_WSTG.WE_NO} Else 0

I get an error message saying a number or currenty when I have already changed to number. Any Ideas.

 
You have a problem with your <= statement. There is no field to the left of <= to compare it to. Your formula should say:

If {VIEW_TM_WSTG.WE_NO} >= ToNumber({@WeekFrom}) And
{VIEW_TM_WSTG.WE_NO} <= ToNumber ({?WeekFrom})Then {VIEW_TM_WSTG.WE_NO} Else 0

Software Support for Macola, Crystal Reports and Goldmine
dgillz@juno.com
 
Dgillz,

Thanks so much you have solved my problem thanks for your help.

Cheers agaian.

Rachel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top