Replace character in a string

razorking

Registered User.
Local time
Today, 14:34
Joined
Aug 27, 2004
Messages
332
Another easy one I am sure:

How do I replace a character in a string? For example I have values in a field like:
12345
123-45
12-345

And I want to remove the dashes. What is the easiest way to do this in a query
 
Assuming you have Access 2000 or later,

use the Replace() function
 
I took a look at that and it took me all of 1 second to see how amateurish the solution was.

The easiest method, as previously mentioned is the Replace() function

Replace([Name],"-","")
Replace([Name]," ","")

David
 

Users who are viewing this thread

Back
Top Bottom