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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Delete text



 
 
Thread Tools Display Modes
  #1  
Old September 8th, 2006, 10:53 PM posted to microsoft.public.access
external usenet poster
 
Posts: n/a
Default Delete text

Hi,
I have a query with result "Your name is XYZ". I would like to put command
which could delete text "Your name is " and as final result I want just
"XYZ".
Please help.

Thnx!



  #2  
Old September 8th, 2006, 11:38 PM posted to microsoft.public.access
John Vinson
external usenet poster
 
Posts: 4,033
Default Delete text

On Fri, 8 Sep 2006 23:53:16 +0200, John wrote:

Hi,
I have a query with result "Your name is XYZ". I would like to put command
which could delete text "Your name is " and as final result I want just
"XYZ".
Please help.

Thnx!



A calculated field

JustName: Mid([fieldname], 14)

will trim off the first 13 characters ("Your name is ").

John W. Vinson[MVP]
  #3  
Old September 8th, 2006, 11:43 PM posted to microsoft.public.access
external usenet poster
 
Posts: n/a
Default Delete text

"John Vinson" wrote in message
...
On Fri, 8 Sep 2006 23:53:16 +0200, John wrote:

Hi,
I have a query with result "Your name is XYZ". I would like to put command
which could delete text "Your name is " and as final result I want just
"XYZ".
Please help.

Thnx!



A calculated field

JustName: Mid([fieldname], 14)

will trim off the first 13 characters ("Your name is ").

John W. Vinson[MVP]



Thnx, but could you be more specific? How can I add this command?


  #4  
Old September 9th, 2006, 03:04 AM posted to microsoft.public.access
John Vinson
external usenet poster
 
Posts: 4,033
Default Delete text

On Sat, 9 Sep 2006 00:43:00 +0200, John wrote:

Thnx, but could you be more specific? How can I add this command?


It's not a "command". It's a calculated Field in a Query.

Edit your Query. In a vacant Field cell type

JustName: Mid([fieldname], 14)

using the name of the field which you're trying to truncate in place
of "fieldname". Or, base a new query on your existing query and do the
same.


John W. Vinson[MVP]
  #5  
Old September 9th, 2006, 12:35 PM posted to microsoft.public.access
external usenet poster
 
Posts: n/a
Default Delete text


"John Vinson" wrote in message
...
On Sat, 9 Sep 2006 00:43:00 +0200, John wrote:

Thnx, but could you be more specific? How can I add this command?


It's not a "command". It's a calculated Field in a Query.

Edit your Query. In a vacant Field cell type

JustName: Mid([fieldname], 14)

using the name of the field which you're trying to truncate in place
of "fieldname". Or, base a new query on your existing query and do the
same.


John W. Vinson[MVP]



Thnx, that's it!!



 




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 08:42 AM.


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