Really Simple Expression Problem!!!!!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

=[ProductCode] & " " & Trim("(" &
Left([SkinDoorReplace],InStr([SkinDoorReplace] & " "," ")-1) & ")" & " " &
[Particular] & " " & [Measurements])

If the [SkinDoorReplace] is null,
the bracket ( ) will exist

If the [SkinDoorReplace] is not null
i need those bracket

what is the code to remove the bracket ( ) if the string [SkinDoorReplace]
is null

Any Solutions?

Thanks in advance

Kennykee
 
Hi, Kenny.

Try:

=[ProductCode] & " " & Trim(IIF(IsNull([SkinDoorReplace]),
Left([SkinDoorReplace], InStr([SkinDoorReplace] & " "," ") -1),
"(" &
Left([SkinDoorReplace], InStr([SkinDoorReplace] & " "," ") -1)
& ")")
& " " & [Particular] & " " & [Measurements])


HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
Beware to those who use munged addresses: known newsgroup E-mail harvesters
for spammers are (e-mail address removed) and (e-mail address removed)

- - -
When you see correct answers to your question posted in Microsoft's Online
Community, please sign in to the Community and mark these posts as "Answers,"
so that all may benefit by filtering on "Answered questions" and quickly
finding the right answers to similar questions. Remember that the first and
best answers are often given to those who have a history of rewarding the
contributors who have taken the time to answer questions correctly.
 
Back
Top