Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validation Rules of Dates in Tables

Status
Not open for further replies.

gareth001

Technical User
Feb 4, 2003
43
GB
Hi, I'm wanting to list out years in table 1 which will contain years from 1901 through to 2050 (future proof). Table 1 will be used as a combo box lookup in table 2, but I'm only wanting the years which are valid to be used, e.g. 2005 and back.

Is there a way to not include 2006 onwards in the combo box list, or to not allow for it to be clicked? I'm thinking it can be done by the validation rule but not sure on the syntax required.

Thanks for your help in advance.

Gareth
 
The combo box rowsource query will do this for you if you modify it to include entries which are:
<=year(Date())
 
Great that works wonders, also opened me up to using queries on combo boxes, thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top