My inefficient way to do that now is concatenate 2 fields (using a vb script) in another field "x" which has an "a:item = "x" ".
The problem with this is that the item can't get a further update if the field x is already populated.
I wanted to put an equation in the item field (=
NameConcatenation(contact,item,FirstName,LastName)
and have a corresponding VB function like :Function NameConcatenation(contact,item,FirstName,LastName) ' Concaténation des prénoms et noms
if item = "" and contact = -1 then
NameConcatenation = FirstName & " " & LastName
elseif item <> "" and contact = -1 and (FirstName <> "" and LastName <> "") then
NameConcatenation = FirstName & " " & LastName
end if
end function
But... it doesn't seem to be possible...
How can I achieve that ? Any ideas ?
Thanks.
Comments
AM:item=fullname | E:item=fullname
=NameConcatenation(contact,item,FirstName,LastName)
Function NameConcatenation(contact,item,FirstName,LastName) ' Concaténation des prénoms et noms
if contact = -1 then
NameConcatenation = FirstName & " " & LastName
end if
end function
E:item=fullname"
if contact = -1 then
fullnameToItem = fullname
else
fullnameToItem = item
end if
end Function
if contact = -1 then
clearitem = ""
else
clearitem = item
end if
end Function
============================