用SQL语句,查询数据库中一条记录的某一单元中的某一个值,怎样把它
赋到文本框中?
赋到文本框中?
解决方案 »
- 急求高手帮忙!非常感谢
- 如何得到网页中的验证码图片?急!!!
- 如何调出WINXP系统,控制面板中的<文件夹选项>,,,,,
- 一个简单的问题,在LISTBOX中选定一个文件名,想要将相应的文件显示在PICTURE中,谢谢!
- 有没有办法编程向excel的单元格里面输入一个对号(勾)?
- 有一个变量的问题想请教一下,在线等待(急)。
- 救命啊!VB如何检测到文本框里输入了回车键?
- MSFlesGred对象的方各驻点问题,在线等待,请各位老师朋友帮助.
- commondialog有点搞不懂。
- 这句是什么意思啊 ??求解释 MSComm1.Output = "e#"
- 怪事------ VB 程序也区分字母大小写?
- 我该定义怎样的参数
大概是这样的,
dim strSQL as string
dim rst as new adodb.recordset
strSQL ="select * from Table"
rst.open strSQL ,cnn,3,1
if not rst.eof then
test1.text="" & rst.fields("你的字段名").value
else
test1.text=""
end if
dim rst as adodb.recordset
strSQL ="select * from Table"
set rst=cnn.execute(strsql)
if not rst.eof then
test1.text="" & rst.fields("字段名").value '如果是多记录可用循环else
test1.text=""
end if
set rst=nothing