Microsoft
Software
Hardware
Network
Question : How to auto-populate a dropdown with the last 10 calendar years?
I would like to auto-populate a dropdown menu with the last 10 calendar years. Previously I auto-populated it from the database with the attached method, but lately I ran into spool space issues and I'd like to use another method. I wonder if it can be done with JavaScript instead. This is what I don't want to use anymore:
<%
Dim rs
set rs=Server.CreateObject("AD
ODB.record
set")
sql="SELECT distinct(Report_Year) FROM Stats_Table"
Set rs = conn.Execute(sql)
%>
<select name="MyReport_Year">
<option>Year</option>
<%
Do While Not rs.EOF
Response.Write "<option>"& rs("Report_Year") &"</option>"
rs.MoveNext
Loop
Response.Write "</select>"
%>
Can anyone please help? Thank you..
Answer : How to auto-populate a dropdown with the last 10 calendar years?
well, my blind guess is that: why do you call mbstowcs() ???? it treats UNICODE buffer as multibyte and tries to convert it to UNICODE, so it's no surprise you see 1 single charachter
Random Solutions
instance_resources
Windows XP does not see other computers on the workgroup
Backup jobs in Symantec Backup Exec 11d keep failing (due to lack of free space on destination drive, I believe). How can I fix this? The job logs have been attached
admx template
Roaming Profiles in Windows 7 Pro and SBS 2008
Windows 7 Enterprise Backing up to a network drive
How can you search e-mail within Outlook 2010 and not use the index?
Windows can't find "msconfig"
Grabbing some word using regular expressions
Adding a doc file into a Report