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
Microsoft Access

Avatar of undefined
Last Comment
jjxia2001

8/22/2022 - Mon
jerryb30

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

ASKER
Got invalid syntax error.
SOLUTION
Patrick Matthews

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
jerryb30

Try replace(replace(yourField, 'chr(34)chr(34)', 'chr34'), 'chr(34)chr(34)', 'chr(34)')
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Patrick Matthews

jerryb30,

I think you are missing some concatenation operators :)

Patrick
Patrick Matthews

jjxia2001,

Did you try either of mine?

Patrick
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
jjxia2001

ASKER
All three ways worked, but I like the one from buttersk.  Thanks all!
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.