Characters limit

  • Thread starter Thread starter João Crespo
  • Start date Start date
J

João Crespo

Can anyone help me to do a query that limit the number of characters for
display.

For exemple i have a filed with 2000 characters and i just want display the
first 300 characters. is that possible?

thanks
 
Assuming Access

SELECT Left([ValLong],10) AS FirstTen
FROM table1;

Returns the first 10 characters from the field.
 
Tanks it works.
Is it possible limit the number of word not characters too?

MD Websunlimited said:
Assuming Access

SELECT Left([ValLong],10) AS FirstTen
FROM table1;

Returns the first 10 characters from the field.
--
Mike -- FrontPage MVP '97-'02
J-Bots 2004 Released Special Pricing
http://www.websunlimited.com
FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible


João Crespo said:
Can anyone help me to do a query that limit the number of characters for
display.

For exemple i have a filed with 2000 characters and i just want display
the
first 300 characters. is that possible?

thanks
 
You would have to count spaces to determine what a word is

--




| Tanks it works.
| Is it possible limit the number of word not characters too?
|
| "MD Websunlimited" <[email protected]> escreveu na mensagem
| | > Assuming Access
| >
| > SELECT Left([ValLong],10) AS FirstTen
| > FROM table1;
| >
| > Returns the first 10 characters from the field.
| > --
| > Mike -- FrontPage MVP '97-'02
| > J-Bots 2004 Released Special Pricing
| > http://www.websunlimited.com
| > FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible
| >
| >
| > | >> Can anyone help me to do a query that limit the number of characters for
| >> display.
| >>
| >> For exemple i have a filed with 2000 characters and i just want display
| >> the
| >> first 300 characters. is that possible?
| >>
| >> thanks
| >>
| >>
| >>
| >
| >
|
|
 

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