Solved

appending name & ph access 2010

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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

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…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
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…

809 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