how do I get rid of an A in a access field

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

Guest

My access 2000 database has a field {NUMBER} that contains following example:

R8175EQTA
86A160ZA
AG4200A
MILT81772TYPE3A

I want to eliminate the trailing "A" only.

Can anyone help????
 
"Stupid and can prove it."
My access 2000 database has a field {NUMBER} that contains following
example:

R8175EQTA
86A160ZA
AG4200A
MILT81772TYPE3A

I want to eliminate the trailing "A" only.

Can anyone help????

You could execute an update query with SQL like this:

UPDATE [YourTableName]
SET [Number] = Left([Number], Len([Number]) -1)
WHERE [Number] Like "*A";

That's "air SQL", of course, but something along those lines should
work.
 
Thanks a lot this works great.

Dirk Goldgar said:
"Stupid and can prove it."
My access 2000 database has a field {NUMBER} that contains following
example:

R8175EQTA
86A160ZA
AG4200A
MILT81772TYPE3A

I want to eliminate the trailing "A" only.

Can anyone help????

You could execute an update query with SQL like this:

UPDATE [YourTableName]
SET [Number] = Left([Number], Len([Number]) -1)
WHERE [Number] Like "*A";

That's "air SQL", of course, but something along those lines should
work.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 

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