Delete * from my data

  • Thread starter Gekko . via AccessMonster.com
  • Start date
A

Allen Browne

Use an Update query.

1. Create a query into this table.

2. Change it to an Update query: Update on Query menu.
Access adds an Update row to the grid.

3. Assuming the field is named "MyField", type this into the Update row
under this field:
Replace([MyField], "*", "")

4. Run the query.

Access 2000 may have problems using Replace() in a query. If you are using
this version and run into trouble, see:
http://support.microsoft.com/?id=225956

Your 2nd example would end up with a leading space. If you wish to remove
that also, use Trim().

You may be able to make the update run faster by using criteria of:
Like "*[*]*"
 
M

Michel Walsh

Hi,


With Access 2002 or later:

- make a backup (copy the dot-mdb file)
- run the query:

UPDATE tableName SET fieldName =REPLACE( fieldName, "*", "" )


the last, third, argument of REPLACE is two double-quote, nothing in between
them. Replace tableName and fieldName as appropriate, for your case.


Hoping it may help
Vanderghast, Access MVP
 

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