If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Expressions
i want to write an expressions to concatenate these three things,
Title,Last Name, First Name Contact Name: IIf(IsNull([Last Name]),IIf(IsNull([First Name]),[Company],[First Name]),IIf(IsNull([First Name]),[Last Name],[First Name] & " " & [Last Name])) i want to store the names with the title first |
#2
|
|||
|
|||
Expressions
I think that you are making it too difficult. Also I don't see Title but do
see Company. Anyway try something like this instead: Contact Name: Trim([Title] & " " & [First Name] & " " & [Last Name]) -- Jerry Whittle, Microsoft Access MVP Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder. "Amin" wrote: i want to write an expressions to concatenate these three things, Title,Last Name, First Name Contact Name: IIf(IsNull([Last Name]),IIf(IsNull([First Name]),[Company],[First Name]),IIf(IsNull([First Name]),[Last Name],[First Name] & " " & [Last Name])) i want to store the names with the title first |
#3
|
|||
|
|||
Expressions
Amin wrote:
i want to write an expressions to concatenate these three things, Title,Last Name, First Name Contact Name: IIf(IsNull([Last Name]),IIf(IsNull([First Name]),[Company],[First Name]),IIf(IsNull([First Name]),[Last Name],[First Name] & " " & [Last Name])) Does this do what you want? Contact Name: IIf(IsNull([Last Name]),IIf(IsNull([First Name]),[Company],[First Name]),Title & " " & IIf(IsNull([First Name]),[Last Name],[First Name] & " " & [Last Name])) -- Marsh MVP [MS Access] |
Thread Tools | |
Display Modes | |
|
|