How to eliminate comma

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

Guest

In this field: ClientFullandTitle: [ClientFull] & ", " & [ctitle] I
sometimes don't have the person's title and the comma appears anyway - how
can I correct?

Thanks,

John
 
Take advantage of the fact that a Null value (no client title value) will
propogate through a + operation, but not through a & operation:

ClientFullandTitle: [ClientFull] & (", " + [ctitle])
 
jmuirman said:
In this field: ClientFullandTitle: [ClientFull] & ", " & [ctitle] I
sometimes don't have the person's title and the comma appears anyway - how
can I correct?

ClientFullandTitle: IIf(IsNull([ctitle]), [ClientFull], [ClientFull] & ", "
& [ctitle] I )

Tom Lake
 
Thanks Ken - it's perfect!

John

Ken Snell said:
Take advantage of the fact that a Null value (no client title value) will
propogate through a + operation, but not through a & operation:

ClientFullandTitle: [ClientFull] & (", " + [ctitle])

--

Ken Snell
<MS ACCESS MVP>


jmuirman said:
In this field: ClientFullandTitle: [ClientFull] & ", " & [ctitle] I
sometimes don't have the person's title and the comma appears anyway - how
can I correct?

Thanks,

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top