Strip out hyphens from column data? ex.2434-2343-4324

  • Thread starter Mitchell_Collen via AccessMonster.com
  • Start date
M

Mitchell_Collen via AccessMonster.com

Hi,
How do you strip out the hyphens in the following numbers?

23434-200234-234
23423-324244-234
23443-234313-343

I want the all values in the column to contain no hyphens, do you know what
to do? Thanks in advance. Misty
 
F

fredg

Hi,
How do you strip out the hyphens in the following numbers?

23434-200234-234
23423-324244-234
23443-234313-343

I want the all values in the column to contain no hyphens, do you know what
to do? Thanks in advance. Misty

On a form?

=Replace([FieldName],"-","")
 
M

Mitchell_Collen via AccessMonster.com

no, sorry I didn't specify that its a query. i see now that i posted in the
forms group. sorry about that too. do you think that I can use that same
logic in a query?
 
K

Klatuu

Yes, but it has to be a calculated field

SELECT Replace([FieldName],"-","") As AnotherName

Or in the Query Builder

AnotherName: Replace([FieldName],"-","")
 

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