Link to home
Start Free TrialLog in
Avatar of jjxia2001
jjxia2001

asked on

Need help to format text field in ACCESS data table

I have a field in an Access table to show three quotes such as this: """0-2,500""". I want to change it to "0-2,500".  How do I delete the extra ".  The length in the middle is not same, may have """2,500-5,000""" or """5,000-10,000""".

I tried MID function, but need the length: MID(fieldName,3,length), length is varied.

Please help
Avatar of jerryb30
jerryb30
Flag of United States of America image

Try replace(replace(yourField, chr(34)chr(34), chr34), chr(34)chr(34), chr(34))
Avatar of jjxia2001
jjxia2001

ASKER

Got invalid syntax error.
SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try replace(replace(yourField, 'chr(34)chr(34)', 'chr34'), 'chr(34)chr(34)', 'chr(34)')
jerryb30,

I think you are missing some concatenation operators :)

Patrick
jjxia2001,

Did you try either of mine?

Patrick
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
All three ways worked, but I like the one from buttersk.  Thanks all!