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

Queries

Status
Not open for further replies.

mercwonder007

IS-IT--Management
Aug 12, 2005
33
US
I have 3 phone fields (Phone, Cell, OtherPhone) I need to create a query that will show the phone numbers in a cingle collumn. I want to show the phone number field first, if that is blank then move on to the Cell phone, if that is blank them move on to the otherphone, if all three are blank then show a message that says, "Get phone number" Any help with this would be greatly appreciated. Thank you.
 
Hi.

iif (Phone is null, iif (Cell is null, iif (OtherPhone is null, "GetPhone", OtherPhone), Cell), Phone)

ChaZ

There Are 10 Types Of People In The world:
Those That Understand BINARY And Those That Don’t.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top