formating a text value

  • Thread starter Thread starter Rodolfo Fontes
  • Start date Start date
R

Rodolfo Fontes

Hi group,

I have a querie that list the products name from another table.
In the querie, products like "PC COMPUTER", that have 11 caracters, should
appear like "PC COMPUT", with 9 caracters.
And products like "PC", should be like "0000000PC".

How can I do that?
i've tried:
NAME: format([Product]; "000000000")
but it looks like only works on numeric values.

Thanks for any help,
Rodolfo Fontes
 
Not so sure about the meaning of the second part of your post, but if you
want just the first 9 characters to display in your query you can:

Name: Left([field],9)

Hope this helps
JMorrell
 
Hi group,

I have a querie that list the products name from another table.
In the querie, products like "PC COMPUTER", that have 11 caracters, should
appear like "PC COMPUT", with 9 caracters.
And products like "PC", should be like "0000000PC".

How can I do that?
i've tried:
NAME: format([Product]; "000000000")
but it looks like only works on numeric values.
replace(format(left([Product],9), "@@@@@@@@@")," ","0")
 

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

Similar Threads

Limiting a text value 2
access is rounding a value 9
Types of JOIN 2
Access Sorting and grouping using multiple tables 0
Running Count By Week 6
Multi Value Selection issues 4
Search a query from form 1
getting long value 2

Back
Top