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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

splitting fields 1

Status
Not open for further replies.

Ouch

Programmer
Jul 17, 2001
159
GB

I have a field on a form like so

One ; two ; three ; four

users sometimes add a extra ;

One ; two ; three ; four ;

i want to delete the last ; but only if it is a ;

Any idea's

 

Could you try something like

lent = Len(input)

if Right(Input,2)=";;"

then

CleanField = Left(input,lent-1)


Paraic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top