Counting Characters

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

Guest

I need to create a field in a query which counts the number of characters in
another field.

I have Len([Policy#])

The problem is this is a linked table from another database (advantage).
The field itself is always 20 characters. So if there are 12
characters(alpha numeric) in the policy number the program defaults 8 blanks
spaces at the end.

So all Policy# are returning 20 characters.

How can I count everything but the blank spaces?
 
I need to create a field in a query which counts the number of characters in
another field.

I have Len([Policy#])

The problem is this is a linked table from another database (advantage).
The field itself is always 20 characters. So if there are 12
characters(alpha numeric) in the policy number the program defaults 8 blanks
spaces at the end.

So all Policy# are returning 20 characters.

How can I count everything but the blank spaces?

Len(Trim([Policy#]))
 
Thanks worked perfectly
--
Thanks in advance
Stefan


fredg said:
I need to create a field in a query which counts the number of characters in
another field.

I have Len([Policy#])

The problem is this is a linked table from another database (advantage).
The field itself is always 20 characters. So if there are 12
characters(alpha numeric) in the policy number the program defaults 8 blanks
spaces at the end.

So all Policy# are returning 20 characters.

How can I count everything but the blank spaces?

Len(Trim([Policy#]))
 

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