doran_doran
Registered User.
- Local time
- Today, 17:48
- Joined
- Aug 15, 2002
- Messages
- 349
Hi everyone, new look, I like it, but need to learn funtionality. But it still does not change the color for the one that has been views. the link color.
Anyway.
I had to import 4 fields from a contact database into my current database.
salutation
first name
middle initial
last name
I am trying to concetanate. But guess what there are some null values for these fileds.
for example.
salutation firstname mi lastname
record1: mr john s edwards
record2: mrs venessa smith
record3: micheal moore
record4: april r roberts
ok, here is how they should look like after concatenate.
mr john s edwards
mrs venessa smith
micheal moore
april r roberts
I am using following it's working but not for all the scenerio.
--- code starts here ---
BillingContactName2: IIf(IsNull([BillingContactSalutation]),[BillingContactFirstName],[BillingContactSalutation]) & " " & IIf(IsNull([BillingContactSalutation]),(IIf(IsNull([BillingContactMiddleInitial]),Left([BillingContactMiddleInitial],0),[BillingContactMiddleInitial])),[BillingContactFirstName]) & " " & IIf(IsNull([BillingContactSalutation]),[BillingContactLastName],(IIf(IsNull([BillingContactMiddleInitial]),Left([BillingContactMiddleInitial],0),[BillingContactMiddleInitial]))) & " " & IIf(IsNull([BillingContactSalutation]),Left([BillingContactLastName],0),[BillingContactLastName])
--- code ends here ---
by the this code is in a query.
See following results when I impleted the code
mr john s edwards (works fine)
mrs venessa smith (has an extra space between vanessa and smith)
micheal moore (has an extra space between micheal and moore)
april r roberts (works fine)
PROMPT RESPOND WILL BE APPRECIATE.
DIANNA
Anyway.
I had to import 4 fields from a contact database into my current database.
salutation
first name
middle initial
last name
I am trying to concetanate. But guess what there are some null values for these fileds.
for example.
salutation firstname mi lastname
record1: mr john s edwards
record2: mrs venessa smith
record3: micheal moore
record4: april r roberts
ok, here is how they should look like after concatenate.
mr john s edwards
mrs venessa smith
micheal moore
april r roberts
I am using following it's working but not for all the scenerio.
--- code starts here ---
BillingContactName2: IIf(IsNull([BillingContactSalutation]),[BillingContactFirstName],[BillingContactSalutation]) & " " & IIf(IsNull([BillingContactSalutation]),(IIf(IsNull([BillingContactMiddleInitial]),Left([BillingContactMiddleInitial],0),[BillingContactMiddleInitial])),[BillingContactFirstName]) & " " & IIf(IsNull([BillingContactSalutation]),[BillingContactLastName],(IIf(IsNull([BillingContactMiddleInitial]),Left([BillingContactMiddleInitial],0),[BillingContactMiddleInitial]))) & " " & IIf(IsNull([BillingContactSalutation]),Left([BillingContactLastName],0),[BillingContactLastName])
--- code ends here ---
by the this code is in a query.
See following results when I impleted the code
mr john s edwards (works fine)
mrs venessa smith (has an extra space between vanessa and smith)
micheal moore (has an extra space between micheal and moore)
april r roberts (works fine)
PROMPT RESPOND WILL BE APPRECIATE.
DIANNA