A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Get rid of first 2 characters.



 
 
Thread Tools Display Modes
  #1  
Old February 6th, 2009, 08:14 PM posted to microsoft.public.access.gettingstarted
Dazed And Confused
external usenet poster
 
Posts: 15
Default Get rid of first 2 characters.

I have a text field in a query called short_description that produces
the names of the following: C-Math, C-English, C-Geography, etc...
How can I get rid of the "C-" so that it just shows Math, English,
Geography, etc?
Any help would be much appreciated.
Thanks,
  #2  
Old February 6th, 2009, 08:30 PM posted to microsoft.public.access.gettingstarted
John Spencer (MVP)
external usenet poster
 
Posts: 217
Default Get rid of first 2 characters.

Use the Mid function to grab all the characters from character 3 on.

Field: FixDescription: MID(Short_Description,3)

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

Dazed And Confused wrote:
I have a text field in a query called short_description that produces
the names of the following: C-Math, C-English, C-Geography, etc...
How can I get rid of the "C-" so that it just shows Math, English,
Geography, etc?
Any help would be much appreciated.
Thanks,

  #3  
Old February 6th, 2009, 08:35 PM posted to microsoft.public.access.gettingstarted
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Get rid of first 2 characters.

Mid([short_description ], 3)

--
KARL DEWEY
Build a little - Test a little


"Dazed And Confused" wrote:

I have a text field in a query called short_description that produces
the names of the following: C-Math, C-English, C-Geography, etc...
How can I get rid of the "C-" so that it just shows Math, English,
Geography, etc?
Any help would be much appreciated.
Thanks,

  #4  
Old February 6th, 2009, 08:41 PM posted to microsoft.public.access.gettingstarted
Dazed And Confused
external usenet poster
 
Posts: 15
Default Get rid of first 2 characters.

On Feb 6, 12:35*pm, KARL DEWEY
wrote:
* *Mid([short_description ], 3)

--
KARL DEWEY
Build a little - Test a little



"Dazed And Confused" wrote:
I have a text field in a query called short_description that produces
the names of the following: *C-Math, C-English, C-Geography, etc...
How can I get rid of the "C-" *so that it just shows Math, English,
Geography, etc?
Any help would be much appreciated.
Thanks,- Hide quoted text -


- Show quoted text -


Thank you all very much! Mid huh/ Well, now I know.
Again, thanks.
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:27 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.