PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?U3R1cGlkIGFuZCBjYW4gcHJvdmUgaXQu?=
Guest
Posts: n/a
 
      13th Oct 2006
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????

 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      13th Oct 2006
"Stupid and can prove it."
<(E-Mail Removed)> wrote in message
news:F66FBA34-5213-49DD-B2AC-(E-Mail Removed)
> 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)


 
Reply With Quote
 
=?Utf-8?B?U3R1cGlkIGFuZCBjYW4gcHJvdmUgaXQu?=
Guest
Posts: n/a
 
      13th Oct 2006
Thanks a lot this works great.

"Dirk Goldgar" wrote:

> "Stupid and can prove it."
> <(E-Mail Removed)> wrote in message
> news:F66FBA34-5213-49DD-B2AC-(E-Mail Removed)
> > 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)
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Memo Field in Access 2007 - On Lose Focus, Field Jumps To Top Bain Davis Microsoft Access Database Table Design 1 12th Apr 2008 03:25 PM
Linked excel field from access form field - help required. fishy Microsoft Excel Programming 1 5th Apr 2008 02:43 PM
Access 2003: How to add a field to an existing report field list? =?Utf-8?B?aG04NDEwOQ==?= Microsoft Access Reports 2 2nd Feb 2006 12:05 AM
changing a datetime field to just a date field in an access table =?Utf-8?B?amFpbWVlMDAx?= Microsoft Access 1 20th Jan 2005 08:48 PM
Import Excel text field to Access date field djh Microsoft Access External Data 3 21st May 2004 04:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 AM.