please remove symbols in a column in an access database

Dr. Logic

Board Regular
Joined
Jul 13, 2005
Messages
218
Replace([PDW ALL]![NOSYMCAT],"+","")

Got this 2 million record ACCESS database called PDW ALL with a column called NOSYMCAT - and the NOSYMCAT is supposed to be a catalog number with NO SYMbols.

So I have been using a formula like above to remove symbols in that column but what a pain in the $$ it is! The query takes 3 minutes to run and I have to do it for each symbol! Is there a faster formula or maybe a code for it?

Here are the symbols I am removing:
+ - ( ) / \ . # ; : @ & = $ " _ (I gotta use CTR-F for those last 2)

Should I just stick with the formula above? It takes me a LONG time to run that query 16 times.

Thanks Greatly
 
This record unchanged: SPR300+

The plus sign still there.

Maybe the find and replace might be a better option (except I'm sure I will run into the MaxLocks registry problem with that because my table is 3 million records).
 
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Here is a link to a file I created and used to test my code shown above. If you download the file and run the code (on Form1 there is a button), you will see that it removes the symbols as you have requested. Compare to your file.

https://app.box.com/s/8vj2wdwqpo6ghgye047z
 
Upvote 0

Forum statistics

Threads
1,215,432
Messages
6,124,859
Members
449,194
Latest member
HellScout

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