Remove single quote

J

Jon R

Using a query I am trying to remove the single quote from the
following example of numerous text fields in a table: AA -5.25"-AAA-
K. Using the following replace function: No
Quote:Replace([PART_NUM],""","") I am receiving the error message
"The expression you entered has an invalid string. A string can be up
to 2048 characters long including opening and closing quotation
marks." The table was imported in from Excel.
Thanks in advance.
Jon R
 
S

storrboy

Using a query I am trying to remove the single quote from the
following example of numerous text fields in a table: AA -5.25"-AAA-
K. Using the following replace function: No
Quote:Replace([PART_NUM],""","") I am receiving the error message
"The expression you entered has an invalid string. A string can be up
to 2048 characters long including opening and closing quotation
marks." The table was imported in from Excel.
Thanks in advance.
Jon R


Instead of replacing " , try replacing Chr$(34)
 
J

Jon R

Using a query I am trying to remove the single quote from the
following example of numerous text fields in a table: AA -5.25"-AAA-
K. Using the following replace function: No
Quote:Replace([PART_NUM],""","") I am receiving the error message
"The expression you entered has an invalid string. A string can be up
to 2048 characters long including opening and closing quotation
marks." The table was imported in from Excel.
Thanks in advance.
Jon R

Instead of replacing " , try replacing Chr$(34)
That did it - thank you.
 

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