parsing comma

C

CShow

I have the following text field on my report

"Two Tower Center, property 1133 --1134"

How can I parse out the comma so this text can read:

"Two Tower Center"

Thanks
 
G

Gary Miller

Do you really mean how can you return everything to the left
of the comma as your example shows?

Left([YourFieldName],InStr([YourFieldName],",")-1)

This says return everthing on the left side up to the
position of the comma - 1 position.
--

Gary Miller
Gary Miller Computer Services
Sisters, OR
________________________
 
C

CShow

Thank you;, Gary...It worked
Gary Miller said:
Do you really mean how can you return everything to the left
of the comma as your example shows?

Left([YourFieldName],InStr([YourFieldName],",")-1)

This says return everthing on the left side up to the
position of the comma - 1 position.
--

Gary Miller
Gary Miller Computer Services
Sisters, OR
________________________
CShow said:
I have the following text field on my report

"Two Tower Center, property 1133 --1134"

How can I parse out the comma so this text can read:

"Two Tower Center"

Thanks
 

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

Top