Remove text from field

G

Guest

I have a field that contains a the name of a business. In front of the name
in brackets is an identifier for thet company. example

[abc123] Microsoft
[def456as] Acme
[ghi] Universal

I need to remove the Brackets and everything in between them so that only
the company name is left. The length of the field between the brackets is
not uniform, it could be anywhere from 3 characters to 12 characters. Any
help would be greatly appreciated. Thank you in advance for your assistance.

-John
 
F

fredg

I have a field that contains a the name of a business. In front of the name
in brackets is an identifier for thet company. example

[abc123] Microsoft
[def456as] Acme
[ghi] Universal

I need to remove the Brackets and everything in between them so that only
the company name is left. The length of the field between the brackets is
not uniform, it could be anywhere from 3 characters to 12 characters. Any
help would be greatly appreciated. Thank you in advance for your assistance.

-John

If all the data in the field has a space between the closing bracket
(]) and the company name, then:
Add a new column to your query.
NewName:Mid([OriginalName],InStr([OriginalName],"]")+2)
 
G

Guest

FANTASTIC!! It worked perfectly, Thank You =)

-John

fredg said:
I have a field that contains a the name of a business. In front of the name
in brackets is an identifier for thet company. example

[abc123] Microsoft
[def456as] Acme
[ghi] Universal

I need to remove the Brackets and everything in between them so that only
the company name is left. The length of the field between the brackets is
not uniform, it could be anywhere from 3 characters to 12 characters. Any
help would be greatly appreciated. Thank you in advance for your assistance.

-John

If all the data in the field has a space between the closing bracket
(]) and the company name, then:
Add a new column to your query.
NewName:Mid([OriginalName],InStr([OriginalName],"]")+2)
 

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