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!

in the command field Type Varchar has the following but how to

Status
Not open for further replies.

pectin232

Technical User
Jan 22, 2011
67
US
The database has all the fields as telephone nos.. like
(702)223-2222, somehow a few has email address instead of phone nos. How do I show like if it is not a phone no then show it as NA or 'Not Available'. Thanks
 
Something like this in Select Expert

IF{Command.TELEPHONE} <> isNumeric then
{Command.TELEPHONE} = 'Not Available'
 
Try:

if isnull({table.field}) or
trim({table.field}) = "" or
instr({table.field},"@") <> 0 then
"Not Available" else
{table.field}

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top