I have a list box that contain db fields. Like that:
<html>
<SELECT name=cbofrom style="HEIGHT: 22px; WIDTH: 100px">
<%call fillcbogl%>
</SELECT>
</html>
.................
<SCRIPT LANGUAGE=vbscript runat=server>
sub fillcbogl ()
if not(oRS.EOF and oRS.BOF) then
oRS.MoveFirst
do while not oRS.EOF
Response.Write "<OPTION VALUE='" & oRS("GL_ACCT") & "'>"
Response.Write oRS("GL_ACCT")
Response.Write "</OPTION>"
oRS.MoveNext
'this count is doing because is not seem to have a listcount in
vbscript
Loop
end if
end sub
</SCRIPT>
but i want to select by default the last item of the combo.... how i can do
that????
tanx a lot