Delete characters up to a space

  • Thread starter Thread starter David#
  • Start date Start date
D

David#

I have a field that I need to delete all characteras up to and including the
first space. The first space may occur anywhere from the second to the
eighth or ninth character position. Can this be accomplished??
 
1. Backup the database in case something goes wrong.

2. In query design view, type an expression like this in the Field row:
Trim(Mid([F1], Instr([F1], " ") + 1))
replacing F1 with the name of your field.

3. Check that this gives the desired results.

4. If so, change the query to an Update query.
(Update on Query menu.)
Access adds an Update row to the query grid.

5. Move the expression into the Update row under your field.

6. Run the query.
 
Back
Top