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

formula not picking up chars 1

Status
Not open for further replies.

ABetha

Programmer
Jul 14, 2010
35
0
0
US
if val({vSerialNo_Operation})< 0 then
formula = 1
else
formula = 0
end if

My formula is not picking up special characters like '?' '!' etc its counting them as 0 when these are not valid and I am looking for it to return a 1 for these characters as well as numbers less than 0.
 
Try

if not(isnumeric({vSerialNo_Operation})) or val({vSerialNo_Operation})<= 0 then
formula = 0
else
formula = 1
end if

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top