Remove Misc characters from a string of numbers?

E

Ernie

You could try the "substitute" function to replace those
characters with null or with a common character.

SUBSTITUTE(text,old_text,new_text,instance_num)


check the F1-Help in access for details.
-----Original Message-----
I need to compare product codes from various souces.
Some will use various characters to separate a string of
numbers e.g. 1234-5678 or 1234.5678 Both are the same
product. Can I run a query to remove the "-" or the "."?
The characters do not always fall in the same position in
the string.
 
D

Dirk Goldgar

Ernie said:
You could try the "substitute" function to replace those
characters with null or with a common character.

SUBSTITUTE(text,old_text,new_text,instance_num)


check the F1-Help in access for details.

There is no Substitute function in Access VBA. Maybe you're thinking of
the Replace function.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top