Solved

appending name & ph access 2010

Posted on 2011-03-13
2
420 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

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

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

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Suggested Courses

617 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