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

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
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:

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>
[TH="bgcolor: #c0c0c0"] CustomerName [/TH]

</thead><tbody>
</tbody><tfoot></tfoot>

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

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>
[TH="bgcolor: #c0c0c0"] CustomerName [/TH]

</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,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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