Mr. Steele
I am still having problems with this. In an empty filed I tried the this
expression:
Right: ([Telephone], 2)
Right$: ([Telephone], 2)
=Right: ([Telephone], 2)
=Right$: ([Telephone], 2)
Right ([Telephone], 2)
Right$ ([Telephone], 2)
The name of the field in the table is: Telephone
I always get the message:
"The expression you entered contains invalid syntax. You omitted an
operand
or operator, you entered an invalid character or comma, or you entered
text
without surrounding it in quotation marks."
I would be grateful if you show me the right way to do it.
Best regards,
Chris
Douglas J. Steele said:
If you've got the query open in the graphical query builder, you put the
function in a blank cell on the Field row.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
Mr. Steel
How do I add this computed field in a query?
Best regards,
Chris
:
Assuming your telephone numbers are stored as text (which they should
be:
you'd only want to store them as numbers if you were going to do
arithmetic
on them!), you can easily add a computed field in a query that uses
the
Right (or Mid) function to extract only those digits of the number of
interest to you and then sort on that field.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
I want to sort telephone numbers from the last diget of telephone
numbers
because the same numbers often begin with different numbers, eg.
area
or
country code. But the last digets are the same. Can this be done in
Access
and how?