1,216
社区成员
发帖
与我相关
我的任务
分享
strsql=" SELECT MAX(列名) AS 列名 FROM 表名 "
if rs.state<>adstateclosed then rs.close
rs.open strsql,cn,adopenkeyset,adlockreadonly
if rs.recordcount>0 then
if not isnull(rs!列名) then
textbox1.text=rs!列名
else
textbox1.text=""
end if
else
textbox1.text=""
end if
rs.close