Remove Parenthesis and their Contents

dmcgetti

Board Regular
Joined
Feb 16, 2015
Messages
66
I am just starting to dabble in Access and I need to remove any parenthesis and their contents from my field "CustomerName". In Excel I would do a Find and Replace of "(*)", but that does not seem to work here.

Thanks as always!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Please post some examples of your data and expected results.
If you may have different scenarios (i.e. parentheses showing up in different places, multiple times, or not at all), please be sure to include those cases in your examples.
 
Upvote 0
My apologies...

Here is what my data sheet currently looks like:

CustomerName
MIKES AUTO REFINISHING (C60)
MIKES AUTO REFINISHING (C60)
CALIBER - GLENOLDEN #3709 (W60)
MOPPERT BROTHERS AUTO COL
CALIBER - GLENOLDEN #3709 (W60)
KEN STOCKER AUTO BODY
BUCKINGHAM COLLISION & TOWING SERVI
BUCKINGHAM COLLISION & TOWING SERVI
BUCKINGHAM COLLISION & TOWING SERVI
MAACO BRIDGEPORT (W60)
MAACO BRIDGEPORT (W60)

<caption> Sales </caption><thead>
</thead><tbody>
</tbody><tfoot></tfoot>

And this is what I would like it to look like:

CustomerName
MIKES AUTO REFINISHING
MIKES AUTO REFINISHING
CALIBER - GLENOLDEN #3709
MOPPERT BROTHERS AUTO COL
CALIBER - GLENOLDEN #3709
KEN STOCKER AUTO BODY
BUCKINGHAM COLLISION & TOWING SERVI
BUCKINGHAM COLLISION & TOWING SERVI
BUCKINGHAM COLLISION & TOWING SERVI
MAACO BRIDGEPORT
MAACO BRIDGEPORT

<caption> Sales </caption><thead>
</thead><tbody>
</tbody><tfoot></tfoot>
 
Upvote 0
You can use an Update Query to remove it, like this:
Code:
UPDATE Table1 
SET Table1.CustomerName = Trim(Left([CustomerName],InStr([CustomerName],"(")-1))
WHERE InStr([CustomerName],"(")>0;
You can copy and paste this into a new query, by switching the SQL View in the Query Builder.
Just substitute Table1 with the name of your Table.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top