Re: Year only in field
- From: "Tim" <nomail@xxxxxxxxxx>
- Date: Sun, 22 Jun 2008 10:00:15 -0700
Tim, use a Number field (size Integer), not Text.
Text is less effienct, and doesn't sort/select correctly, and
can contain non-numeric characters.
Done.
To ensure a sensible (4-digit) number is entered, set these
properties on the field:
Validation Rule: Is Null OR Between 1000 And 2999
Validation Text: Enter a 4 digit year
Ah, I have never done something like that. This would work.
BTW, don't name the field YEAR. This is a function name, and
in certain contexts (forms, reports), Access will
misunderstand what you are talking about. Use something such
as TheYear, BirthYear, IncidentYear.
Yes, I have the field named EventYear.
Thank you Allen (and you too Bonnie) for the help in this.
Tim
.
- References:
- Year only in field
- From: Tim
- Re: Year only in field
- From: bhicks11 via AccessMonster.com
- Re: Year only in field
- From: Tim
- Re: Year only in field
- From: bhicks11 via AccessMonster.com
- Re: Year only in field
- From: Allen Browne
- Year only in field
- Prev by Date: Re: Need quick way change old field name to new one everywhere ?
- Next by Date: Text Field Capitalization
- Previous by thread: Re: Year only in field
- Next by thread: Re: How do I set up a records/file management system in Access 2003?
- Index(es):