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!

create year in combo box..help please!!!

Status
Not open for further replies.

senadaulay

Programmer
Feb 4, 2004
29
ID
Hi,
I need help ...thanks in advance.
I want to make a year using combo box where it will show the year from 2001-2005, but how to make the year flexsible.
for example:
if user choose the year of 2004,in the combo box it will show the year from 2000,2001,2002,2003,2004,and 2005.
later on if user chosse year 2003, in the combo box will be show 1999,2000,2001,2002,2003,and 2004.
the calculation will be 4 years back and 1 year ahead.

any kind of help appriciate,
thanks
 
try this:
<%
setyr=2003
for i=setyr-4 to setyr+1
response.write i&"<br>"
next
%>

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top