replace query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

morning all

i have a table with numberical values, these values have a minus - sign
before the value, i would like to run a replace query which will remove the -
value and replace it with a space i.e. -325.25 to 325.25

any suggestions and thank you in advance

Nick
 
First BackUp your data,

Use Update query with the function Abs to replace the negetive value

Update TableName Set FieldName = Abs([FieldName])

You wrote that you want to replace the minus sign with space, you can do
that only if the field type is text.

Try
Update TableName Set FieldName = Replace([FieldName],"-"," ")
 
Sorry but what is the function abs?

Ofer Cohen said:
First BackUp your data,

Use Update query with the function Abs to replace the negetive value

Update TableName Set FieldName = Abs([FieldName])

You wrote that you want to replace the minus sign with space, you can do
that only if the field type is text.

Try
Update TableName Set FieldName = Replace([FieldName],"-"," ")

nick dj said:
morning all

i have a table with numberical values, these values have a minus - sign
before the value, i would like to run a replace query which will remove the -
value and replace it with a space i.e. -325.25 to 325.25

any suggestions and thank you in advance

Nick
 
From the help

"Returns a value of the same type that is pass to it specifying the absolute
value of a number"

Abs(-233) will return 233

nick dj said:
Sorry but what is the function abs?

Ofer Cohen said:
First BackUp your data,

Use Update query with the function Abs to replace the negetive value

Update TableName Set FieldName = Abs([FieldName])

You wrote that you want to replace the minus sign with space, you can do
that only if the field type is text.

Try
Update TableName Set FieldName = Replace([FieldName],"-"," ")

nick dj said:
morning all

i have a table with numberical values, these values have a minus - sign
before the value, i would like to run a replace query which will
remove
the -
value and replace it with a space i.e. -325.25 to 325.25

any suggestions and thank you in advance

Nick
 

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

Back
Top