month and year expression

H

hermie

In my query I made an expression to show month and year. However the value
of the year returns in another value. The value must be 2006 but shows 1905
Expression used:
Expr2: =MonthName([Informe estudio]![Mes_ter]) & ", " & Year([Informe
estudio]![Ano_ter])
Field Ano_ter is an numberfield long integer

How to show the real year?

Herman
 
K

Ken Snell [MVP]

If the field Ano_ter is an numberfield long integer, then don't use Year
function. Just use the field directly.
 
B

Brendan Reynolds

The Year() function extracts the year part from a date/time value, but you
say that your field 'Ano_ter' is not a date/time field, but a long integer
field, so it would not be appropriate to use the Year() function with the
value in that field. What expression you would use depends on what is stored
in that field and how that value is related to the desired year?

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 
Top