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

if this or this then syntax 1

Status
Not open for further replies.

mibeach7

MIS
Jun 18, 2003
35
US
This syntax is not working, get error message needing more ((())). Any ideas how to set this up right. thanks alot. rm


if {GROUP_DAYS_SUPPLY.DAYS_BP1} is null or ({GROUP_DAYS_SUPPLY.DAYS_LIMIT}*{GROUP_DAYS_SUPPLY.MAX_FILLS}) < {GROUP_DAYS_SUPPLY.DAYS_BP1} then &quot;1&quot;

else if {GROUP_DAYS_SUPPLY.DAYS_BP2} is null or ({GROUP_DAYS_SUPPLY.DAYS_LIMIT}*{GROUP_DAYS_SUPPLY.MAX_FILLS}) < {GROUP_DAYS_SUPPLY.DAYS_BP2} then &quot;2&quot;

else &quot;3&quot;
 
Try:
Code:
if isnull({GROUP_DAYS_SUPPLY.DAYS_BP1}) or ({GROUP_DAYS_SUPPLY.DAYS_LIMIT}*{GROUP_DAYS_SUPPLY.MAX_FILLS}) < {GROUP_DAYS_SUPPLY.DAYS_BP1} then &quot;1&quot;

else if isnull({GROUP_DAYS_SUPPLY.DAYS_BP2}) or ({GROUP_DAYS_SUPPLY.DAYS_LIMIT}*{GROUP_DAYS_SUPPLY.MAX_FILLS}) < {GROUP_DAYS_SUPPLY.DAYS_BP2} then &quot;2&quot;

else &quot;3&quot;

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top