Find and replace

C

Chris

I'm trying to scan a field in one of my tables and find a specific character
and remove it. However, the character is a " so I'm having difficulty. The
field I speak of of contains the sizes of our material so the values look
like this:

1/4"
1/2"
1/3" and so on.

How can I find all of the " in my feild and remove them? I don't want to
replace them I just want to remove them.

Thanks,
Chris Savedge
 
A

Allen Browne

Create a query, and in the Criteria row under the problem field, enter:
Like "*[""]*"
 
C

Chris

Allen,

This allows me to find them. What I want to do is actually remove the "
character from each value where it is present. How do I strip off this
character?

Thanks,
Chris

Allen Browne said:
Create a query, and in the Criteria row under the problem field, enter:
Like "*[""]*"

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.


Chris said:
I'm trying to scan a field in one of my tables and find a specific
character and remove it. However, the character is a " so I'm having
difficulty. The field I speak of of contains the sizes of our material
so the values look like this:

1/4"
1/2"
1/3" and so on.

How can I find all of the " in my feild and remove them? I don't want to
replace them I just want to remove them.

Thanks,
Chris Savedge
 
K

KARL DEWEY

Use an update query after backing up the database.
The double quote character is ASCII 34 so use this as the 'Update To' --
Replace([YourField], Chr(34), "")

--
Build a little, test a little.


Chris said:
Allen,

This allows me to find them. What I want to do is actually remove the "
character from each value where it is present. How do I strip off this
character?

Thanks,
Chris

Allen Browne said:
Create a query, and in the Criteria row under the problem field, enter:
Like "*[""]*"

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.


Chris said:
I'm trying to scan a field in one of my tables and find a specific
character and remove it. However, the character is a " so I'm having
difficulty. The field I speak of of contains the sizes of our material
so the values look like this:

1/4"
1/2"
1/3" and so on.

How can I find all of the " in my feild and remove them? I don't want to
replace them I just want to remove them.

Thanks,
Chris Savedge


.
 

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

Similar Threads

Find and wipeout 3
find/replace characters like quotes 11
find and replace situation 3
replace characters in table 6
InStr Function Help 3
Find and Replace 2
Find and replace 5
Find and Replace 3

Top