String Expression looking for "("

  • Thread starter Thread starter Garry
  • Start date Start date
G

Garry

Hi all
I have a field [FullName] that sometime has for example
Ray Morris or
Bill Hughes (FR)
I am trying to get returned the names Ray Morris and Bill Hughes
in other words everything to the left of "("
What forme would the expression look like ?

many thanks Garry
 
Hi Garry

try

pname:
IIf(InStr([fullname],"(")>0,Left([fullname],InStr([fullname],"(")-1),[fullna
me])

Cheers
JulieD
 
Spot on JulieD, thanks very much for your time


JulieD said:
Hi Garry

try

pname: IIf(InStr([fullname],"(")>0,Left([fullname],InStr([fullname],"(")-1),[fullna
me])
JulieD

Garry said:
Hi all
I have a field [FullName] that sometime has for example
Ray Morris or
Bill Hughes (FR)
I am trying to get returned the names Ray Morris and Bill Hughes
in other words everything to the left of "("
What forme would the expression look like ?

many thanks Garry
 
you're welcome ..
Garry said:
Spot on JulieD, thanks very much for your time


JulieD said:
Hi Garry

try

pname:
IIf(InStr([fullname],"(")>0,Left([fullname],InStr([fullname],"(")-1),[fullna
me])
JulieD

Garry said:
Hi all
I have a field [FullName] that sometime has for example
Ray Morris or
Bill Hughes (FR)
I am trying to get returned the names Ray Morris and Bill Hughes
in other words everything to the left of "("
What forme would the expression look like ?

many thanks Garry
 

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