Forum Moderators: open
<select name="apply_year" class="mysoma-dropdown" id="apply_year" onBlur="makeAppDate()" onChange="makeAppDate()">
<option value="" <%If (Not isNull(Year(now()))) Then If ("" = CStr(Year(now()))) Then Response.Write("SELECTED") : Response.Write("")%>></option>
<%
While (NOT rs_date_applicationyear.EOF)
%>
<option value="<%=(rs_date_applicationyear.Fields.Item("year_number").Value)%>" <%If (Not isNull(Year(now()))) Then If (CStr(rs_date_applicationyear.Fields.Item("year_number").Value) = CStr(Year(now()))) Then Response.Write("SELECTED") : Response.Write("")%> ><%=(rs_date_applicationyear.Fields.Item("year_number").Value)%></option>
<%
rs_date_applicationyear.MoveNext()
Wend
If (rs_date_applicationyear.CursorType > 0) Then
rs_date_applicationyear.MoveFirst
Else
rs_date_applicationyear.Requery
End If
%>
</select>
In order to change the years displayed you need to change the data that is going into that. So, if you wanted 2005 to be in that list, you'd add it to the table that rs_date_applicationyear.Fields.Item("year_number") is being pulled from.
-=casey=-
SELECT *
FROM unity_date_year_list
WHERE year_number > 'MMColParam' AND year_number < 'MaxYearNum'
The db "unity_date_year_list" goes well beyond 2005. Originally there was MaxYearNum variable set to 2005, even though it never displayed 2005 as an option. I have deleted the variables in my attempts to fix this. Please give me anymore input that you may have, as I am very appreciative for your time.
The code would end up looking like the following:
SELECT *
FROM unity_date_year_list
WHERE year_number >= 'MMColParam' AND year_number <= 'MaxYearNum'
-=casey=-
I don't remember what the Run-time Value for the variables,
When you say the above, are you saying that you don't remember what the values of MMColParam and MaxYearNum were?
I would assume that they were:
MMColParam = 2002
MaxYearNum = 2005
If this isn't what you're asking, please clarify.
Perhaps you could include the code that pieces together the SQL code you posted earlier. We could take a look at that and perhaps it would become clearer what the problem is.
-=casey=-