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
I tried MID function, but need the length: MID(fieldName,3,length), length is varied.
Please help
Try replace(replace(yourField, chr(34)chr(34), chr34), chr(34)chr(34), chr(34))
ASKER
Got invalid syntax error.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
I think you are missing some concatenation operators :)
Patrick
jjxia2001,
Did you try either of mine?
Patrick
Did you try either of mine?
Patrick
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
All three ways worked, but I like the one from buttersk. Thanks all!