Seperate text?

  • Thread starter Thread starter Steve Warren
  • Start date Start date
S

Steve Warren

I have a table with data in a field that i need to eliminate every thing
after a forward slash example

What I have
B36/ch
B3036/ch
D20TH/gg

What I want is
B36
B3036
D20TH

I have about 400k records that I need to do.

I know how to use Trim, Len in a query but that doesn't help.

Can you help me?

Thank you
 
We assume you will make copy in case you mess up!!!

You can build a update query, and send the results to another field,
or...overwrite the existing...

split([FieldName],"/")(0)

The above will return the first part....

You can also use instr if you want......

So, you can use a upate query...and don't need to write any code.....
 
Permanently, or just in a query?

If just in a query, create a calculated field along the lines of:

FirstPart: Left([MyField], InStr([MyField], "/") - 1)

If permanently, use that expression (what's after the :) in an UPDATE query.

(Replace MyField with your actual field name)
 
U¿ytkownik "Steve Warren said:
I have a table with data in a field that i need to eliminate every thing
after a forward slash example

What I have
B36/ch
B3036/ch
D20TH/gg

What I want is
B36
B3036
D20TH

I have about 400k records that I need to do.

I know how to use Trim, Len in a query but that doesn't help.

Can you help me?

Thank you

============================================================================
================
FULL LEGAL SOFTWARE !!!
Games, video, program, image, chat, questbook, catalog site, arts, news,
and...
This site it is full register and legal software !!!
Please download and you must register software !!!

PLEASE REGISTER SOFTWARE:
http://www.webteam.gsi.pl/rejestracja.htm
DOWNLOAD LEGAL SOFTWARE:
http://www.webteam.gsi.pl

Full question and post: http://www.webteam.gsi.pl

Contact and service and advanced technology:
http://www.webteam.gsi.pl/kontakt.htm
FAQ: http://www.webteam.gsi.pl/naj_czesciej_zadawane_pytania.htm

Please add me URL for you all site and search engines and best friends !!!

Me site:
SERWIS WEBNETI: http://www.webneti.gsi.pl
PORTAL WEBTEAM: http://www.webteam.gsi.pl
LANGUAGE: http://www.webneti.cjb.net
============================================================================
================
 

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

Similar Threads

If or 3
Is this a Quotes problem? 7
Average HELP!! 4
Formula Help 1
Formula Help 1
Take an average of data where lookup in array is needed 3
Type Mismatch 0
Formula Help 1

Back
Top