I am building a combo box (drop down) on a html page and using js to dynamically populate it with a recordset. It has approx 5000 records and takes about 2 minutes to load. The code looks something like this:
While (!rs.EOF)
{
frm1.cboCC.options = new Options(rs("cost_cent"
+ " - " + rs("costcentnum"
.value, rs("cost_cent"
.value;
i++;
rs.movenext;
}
Is there a quicker way to do this?
While (!rs.EOF)
{
frm1.cboCC.options = new Options(rs("cost_cent"
i++;
rs.movenext;
}
Is there a quicker way to do this?