Find and Replace Query with Wildcards in Access

G

Guest

I am trying to create a Find and Replace query with wildcards. For example,
I have e-mail addresses that have country codes in them such as
"(e-mail address removed)". I wish to get rid of the country codes in all of the
e-mail address so that they read simply "(e-mail address removed)". There are
different country codes in each e-mail address, so I need to use wildcards.
I have tried to use the Replace function with something like this:
UPDATE

SET
.email = Replace (e-mail address removed)
 
J

John Vinson

I am trying to create a Find and Replace query with wildcards. For example,
I have e-mail addresses that have country codes in them such as
"(e-mail address removed)". I wish to get rid of the country codes in all of the
e-mail address so that they read simply "(e-mail address removed)". There are
different country codes in each e-mail address, so I need to use wildcards.
I have tried to use the Replace function with something like this:
UPDATE

SET
.email = Replace (e-mail address removed)
 
S

Skip

GoFlyersCS said:
I am trying to create a Find and Replace query with wildcards. For example,
I have e-mail addresses that have country codes in them such as
"(e-mail address removed)". I wish to get rid of the country codes in all of the
e-mail address so that they read simply "(e-mail address removed)". There are
different country codes in each e-mail address, so I need to use wildcards.
I have tried to use the Replace function with something like this:
UPDATE

SET
.email = Replace (e-mail address removed)
 
G

Guest

John,

I get a "Syntax Error (missing operator)" when I try to save that query.
Any thoughts?

Thanks

John Vinson said:
I am trying to create a Find and Replace query with wildcards. For example,
I have e-mail addresses that have country codes in them such as
"(e-mail address removed)". I wish to get rid of the country codes in all of the
e-mail address so that they read simply "(e-mail address removed)". There are
different country codes in each e-mail address, so I need to use wildcards.
I have tried to use the Replace function with something like this:
UPDATE

SET
.email = Replace (e-mail address removed)
 
J

John Vinson

John,

I get a "Syntax Error (missing operator)" when I try to save that query.
Any thoughts?

Sorry! Left off a closing parenthesis:

UPDATE

SET (e-mail address removed)
 

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