vb 如何将ACCESS某列的数据导入Combo1下拉框中,谢谢
2个回答
展开全部
导入表a中的name字段
recordset.cursorlocation = aduseclient
recordset.open "select a.name from a" ,connection
if recordset.recordcount >0 then
recordset.movefirst
do until recordset.eof
combo1.additem recordset.field(0)
recordset.movenext
loop
end if
recordset.close
recordset.cursorlocation = aduseclient
recordset.open "select a.name from a" ,connection
if recordset.recordcount >0 then
recordset.movefirst
do until recordset.eof
combo1.additem recordset.field(0)
recordset.movenext
loop
end if
recordset.close
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询