PC Review


Reply
Thread Tools Rate Thread

How do I get rid of extra alphas & numerics in front of my parts l

 
 
=?Utf-8?B?RHVzdGlu?=
Guest
Posts: n/a
 
      27th May 2007
Hi,

I have a parts list that contains this in most of the Part No field, Table
14: DR 1421. I would like to get rid of the Table 14: part that is contained
in all most all the records. How do I this with out erasing each one
individually?

Thanks Dustin
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGFuaWVs?=
Guest
Posts: n/a
 
      27th May 2007
If you always have a common delimiter then you can determine the position and
extract what you need.

IE:
StrPartNo = "Table 14: DR 1421"
Right(StrPartNo,Len(StrPartNo)-Instr(StrPartNo,":"))
--
Hope this helps,

Daniel P







"Dustin" wrote:

> Hi,
>
> I have a parts list that contains this in most of the Part No field, Table
> 14: DR 1421. I would like to get rid of the Table 14: part that is contained
> in all most all the records. How do I this with out erasing each one
> individually?
>
> Thanks Dustin

 
Reply With Quote
 
=?Utf-8?B?RGFuaWVs?=
Guest
Posts: n/a
 
      27th May 2007
If you want to completly eliminate the prefix info, you could also run an
update query on the underlying table.
--
Hope this helps,

Daniel P





"Dustin" wrote:

> Hi,
>
> I have a parts list that contains this in most of the Part No field, Table
> 14: DR 1421. I would like to get rid of the Table 14: part that is contained
> in all most all the records. How do I this with out erasing each one
> individually?
>
> Thanks Dustin

 
Reply With Quote
 
=?Utf-8?B?T2ZlciBDb2hlbg==?=
Guest
Posts: n/a
 
      27th May 2007
Hi,

If the 14: never repeat, it only apear in the beginning, you can use the
Replace function to remove it

Replace([FieldName],"14:","")

***** In any case, if you goig to update your data, create BACK UP first
******


--
Good Luck
BS"D


"Dustin" wrote:

> Hi,
>
> I have a parts list that contains this in most of the Part No field, Table
> 14: DR 1421. I would like to get rid of the Table 14: part that is contained
> in all most all the records. How do I this with out erasing each one
> individually?
>
> Thanks Dustin

 
Reply With Quote
 
=?Utf-8?B?T2ZlciBDb2hlbg==?=
Guest
Posts: n/a
 
      27th May 2007
Sorry,

Replace([FieldName],"Table 14:","")
--
Good Luck
BS"D


"Ofer Cohen" wrote:

> Hi,
>
> If the 14: never repeat, it only apear in the beginning, you can use the
> Replace function to remove it
>
> Replace([FieldName],"14:","")
>
> ***** In any case, if you goig to update your data, create BACK UP first
> ******
>
>
> --
> Good Luck
> BS"D
>
>
> "Dustin" wrote:
>
> > Hi,
> >
> > I have a parts list that contains this in most of the Part No field, Table
> > 14: DR 1421. I would like to get rid of the Table 14: part that is contained
> > in all most all the records. How do I this with out erasing each one
> > individually?
> >
> > Thanks Dustin

 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      27th May 2007
On Sun, 27 May 2007 09:54:00 -0700, Dustin <(E-Mail Removed)>
wrote:

>Hi,
>
>I have a parts list that contains this in most of the Part No field, Table
>14: DR 1421. I would like to get rid of the Table 14: part that is contained
>in all most all the records. How do I this with out erasing each one
>individually?
>
>Thanks Dustin


Is there any variation in these? Is it always Table 14: or might it be Table
12: or Table 32: sometimes? Can you count on the colon being present?

If a) you want to edit only those values that start with the word Table and
contain a colon and b) replace "Table 14: DR 1412" with "DR 1412" then:

- Back up your database (update queries are irreversible!)
- Create a Query based on your table with a criterion on Part No of

LIKE "Table*:*"

and see if it is retrieving just those records you want to edit

- Change the Query to an Update query using the query tool
- On the Update To line under Part No put

Trim(Mid([Part No], InStr([Part No], ":") + 1))

Run the query by clicking the ! icon.

John W. Vinson [MVP]
 
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
Removing 2 extra spaces in front of dates in imported excel doc =?Utf-8?B?SGFubmFo?= Microsoft Excel Misc 4 12th Apr 2006 07:37 PM
Report Header - Extra page at the front =?Utf-8?B?RVZHMw==?= Microsoft Access Reports 4 15th Mar 2006 12:56 PM
how to omit extra space between two parts of word in farsi text =?Utf-8?B?dG9lbHc=?= Microsoft Word Document Management 1 3rd Dec 2005 04:27 PM
Urgent: Linking to different parts of a pictures with Front Page Jeremy Grandstaff Microsoft Frontpage 1 15th Nov 2005 03:53 AM
how to change rows or reference from numerics to alphas =?Utf-8?B?dGlmZmFueQ==?= Microsoft Excel Setup 1 18th Aug 2005 06:47 PM


Features
 

Advertising
 

Newsgroups
 


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