vb ADO记录集我想问问用recordset产生的记录集怎么读取??比如有一数据库,某张表里有个文件名字段,怎么从
vb ADO记录集
我想问问用recordset产生的记录集怎么读取??比如有一数据库,某张表里有个"文件名"字段,怎么从recordset对象中取出具体的值,并在文本框里显示??
[解决办法]
whiile not rs.eof
text1.text=text1.text & rs!文件名 & vbcrlf
rs.movenext
wend
[解决办法]
dim rs as new recordset
dim adocon1 as New ADODB
Set rs = adocon1.Execute("select "文件名" from 表)
Do While Not Rs.EOF
text1.text=text1.text & rs!文件名 & vbcrlf
Rs.MoveNext
Loop
[解决办法]
rs.movefirst
While Not Rs.EOF
text1.text=text1.text & rs.Fields("字段名")
Rs.MoveNext
wend
