Solved

appending name & ph access 2010

Posted on 2011-03-13
2
418 Views
Last Modified: 2012-05-11
i have a query that appends first  & last name together using

Customer Name: IIf(IsNull([Last Name]),IIf(IsNull([First Name]),[Company],[First Name]),IIf(IsNull([First Name]),[Last Name],[First Name] & " " & [Last Name]))

I would like to add home PH Bus PH and M Ph so i can populate a text box with
John Smith 112334567  1234455  04156787

The purpose of this is so i can make appointment in calendar (from access) where the subject line has name and ph for fast lookup and i don't have to add the person to contacts.  

Currently keep getting wrong number of augments. All are from the same table.  Also some ph no.s may be null
thanks appreciate the help

0
Comment
Question by:kcc12
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 21

Accepted Solution

by:
Boyd (HiTechCoach) Trimmell, Microsoft Access MVP earned 500 total points
ID: 35125601
Try:

CustomerName: IIf( IsNull([Last Name]) and IsNull([First Name]),[Company], Trim([First Name] & " " & [Last Name]))

with phone #'s

CustomerNamePhones: IIf( IsNull([Last Name]) and IsNull([First Name]),[Company], Trim([First Name] & " " & [Last Name]))  & " " & Trim("H: "+[HonePH] & " " & Trim("W: "+[WorkPhoe] & " C: "+[CellPhone]))

0
 

Author Comment

by:kcc12
ID: 35125678
works beautifully.
thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can a Trigger trigger a Trigger? 4 47
Create a Calendar table 29 45
mysql workbecn having problems to export tables to cvs 4 28
SQL Query 20 25
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question