Delete text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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]
 
John Vinson said:
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?
 
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]
 
John Vinson said:
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!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top