Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Altering description of products 6

Status
Not open for further replies.

AdamRicko

Technical User
Feb 19, 2009
97
GB
Hi Folks,

Im trying to take the start of a description and put in a different field e.g.


75cl CHATEAUNEUF DU PAPE NALYS 05/06

all the descriptions have the size of the item at the beggining but i want to effectively Cut these from the desciption so i can place elsewhere on my report. The size of the items vary e.g. 75cl , 550ml, KEG, FIRN.

So ideally

75cl CHATEAUNEUF DU PAPE NALYS 05/06

would come out as CHATEAUNEUF DU PAPE NALYS 05/06 with 75cl shown seperately.

Many Thanks in advance,

AdamRicko


CR2008
 
Scrap the above, have just found a table with the sizes on. Allthough now i need to trim the sizes off the description. As i said before the sizes vary but their is a space between the size and the product. Would trimleft work or does that just get rid of blank space?

Cheers
 
Try

mid({yourfield}, (instr({yourfield}," ")+1), length({yourField}))

Ian
 
Or more simply, you could use:

mid({table.field}, instr({table.field}," ")+1)

-LB

 
Or - if the description is the same as the other seperate field indicating size:

Replace({table.description},{table.size}&' ','')

'J







CR8.5 / CRXI - Discovering the impossible
 
Cheers folks, tried all 3 and they all work :)

Greatly Appreciated,

AdamRicko
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top