set rs=currentdb.openrecordset("select distinct courseName from tt")
ASQL=""
do while not rs.eof
ASQL=ASQL+RS(0)  
rs.movenext
loop
最好用c#,datatable,感谢呀!!!