Remove single qoute in the data

accessfever

Registered User.
Local time
Yesterday, 16:27
Joined
Feb 7, 2010
Messages
101
I have a text column which I want to remove the single qoute(s) in the records. What is the command to remove the single quote?

E.g 1.

Original data = 1,234,567 EA
New data wanted = 1234567 EA


E.g 2.

Original data = 1,234 ROL
New data wanted=1234 ROL
Any idea?
 
Accessfever,

Those are not single quotes. They are commas.

You can run an Update Query on the table. Update [TheNameOfYourField] to:
Replace([TheNameOfYourField],",","")
 
And in case you want to still keep the original data but also be able to present it without the commas, use Steve's code in a SELECT query as an aliased field.

In a new field of the query:
Code:
AliasFieldName: Replace([TheNameOfYourField],",","")

http://www.techonthenet.com/access/functions/string/replace.php
 
Another thing to consider is if the data in non-atomic.

Would your database be better served if 1,234,567 was in one field and EA in another?

If 1,234,567 is in a numeric field then there will be no formatting applied in the field.
The formatting can still be applied, based on regional settings, when displayed.
 
Hey Chris, long time no speak. Glad to see you're still here. :)
 
Still here…occasionally.

Been a bit busy of late, trying to bring many A97 databases up to A2K3 FE’s and SQL Server BE.

Not going too well as both speed and security seem to be a sticking point at the moment.

But that, as they say, is what we are paid to do…
 

Users who are viewing this thread

Back
Top Bottom