Display data without leading spaces

G

Guest

I have two fields, one is the customer code and the other is the product
code. Both fields are text fields with a field size of 12. The data in the
fields have leading spaces with data values from 1 to 999999 so there are
from 11 to six leading spaces. How do I format the fields on a query or
report to display the values without the leading spaces?

Thanks,

Scott
 
J

Jason Lepack

Scott,

Use the trim() function.

SELECT
Trim(your_field_with_the_spaces)
FROM
you_table

Cheers,
Jason Lepack
 

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

Top