Removing Portions of Records

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Ok,

Quick Question. I have a Field filled with numbers of varying lenths. 8 or
more characters. If there are only 8 characters than I would want the record
left alone if there are 9 or more characters than I would want the left 8
charactoers deleted. How would I do this? Thanks!!

Hizaed
 
Permanently, or just in a query?

In a query, you'd put a calculated field along the lines of

NewField: IIf(Len([ExistingField] >=9, Mid([ExistingField], 9),
[ExistingField])

To do this permanently, you'd use the IIf expression above in an Update
query.
 

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

Back
Top