query results

  • Thread starter Thread starter jkjmwilliams
  • Start date Start date
J

jkjmwilliams

How can I display only 4 digits in a number in a query when the original data
has 5. I am storing my numbers as text.

JoAnn
 
This would also apply to how to show only the first letter (initial) of a
name. How to?
 
jkjmwilliams said:
How can I display only 4 digits in a number in a query when the original
data
has 5. I am storing my numbers as text.


Let your query select the expression,

Left([YourNumberField], 4)
 
jkjmwilliams said:
This would also apply to how to show only the first letter (initial) of a
name. How to?


For example,

SELECT Left([FirstName, 1), LastName
FROM MyTable
 
Thanks, I tried it out, and it worked! You forgot to put the closing bracket
in, but I figured that part out. I just needed to know the right code.

Dirk Goldgar said:
jkjmwilliams said:
This would also apply to how to show only the first letter (initial) of a
name. How to?


For example,

SELECT Left([FirstName, 1), LastName
FROM MyTable


--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 

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