查询问题 数据表如下字段:姓名简码姓名住址窗体中有两个文本框如何在textbox1中输入lxl 回车后textbox1 lxl变为 李小龙 textbox2 显示住址地点 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\My Documents\db21.mdb;Persist Security Info=False" Adodc1.CommandType = adCmdText Adodc1.RecordSource = "select * from 表1 where 姓名简码='" & Trim(Text1) & "'" Adodc1.Refresh Text1 = "": Text2 = "" Do While Not Adodc1.Recordset.EOF '考虑简码有重复的 Text1 = Text1 & " " & Adodc1.Recordset.Fields(1) Text2 = Text2 & " " & Adodc1.Recordset.Fields(2) Adodc1.Recordset.MoveNext Loop End If End Sub 还有问题·数据表 字段: 姓名简码 姓名 住址 窗体中有两个文本框 如何在textbox1中输入lxl 回车后 textbox2 显示住址地点如何循环添加住址到 textbox2中 ?每条新住址都靠左排列 加& VbCrLF & _就行了吗?不好意思我是菜鸟 上面已经正解。修改这里就可以了Text2 = Text2 & " " & Adodc1.Recordset.Fields(2) + Chr(13) 看看这个怎么错了?导出EXCEL没有字段 VB打包应该注意什么啊?为什么我的打包之后在别的机子上用不了啊? 圣诞快乐!!!大家谁遇到winsock的以下问题!!不简单呀!给60分!! 帮忙看一下SQL语句,如何改才能用。(解决立马给分) 事件声明 关于查询出现的错误--我都没见过,麻烦各位来看一下 高难度,高分送,怎么用winsock传送双精度数组(一个20行2O列的数组) (在线等待)我使用通用对话框CommonDialog关于打印的问题(在线等待。。。) 求教 关于VB6.0报表刷新,来者有分! 数据库问题,求高手给个解决方法 Sheet在userform里
If KeyAscii = 13 Then
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\My Documents\db21.mdb;Persist Security Info=False"
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 表1 where 姓名简码='" & Trim(Text1) & "'"
Adodc1.Refresh
Text1 = "": Text2 = ""
Do While Not Adodc1.Recordset.EOF '考虑简码有重复的
Text1 = Text1 & " " & Adodc1.Recordset.Fields(1)
Text2 = Text2 & " " & Adodc1.Recordset.Fields(2)
Adodc1.Recordset.MoveNext
Loop
End If
End Sub
数据表
字段:
姓名简码
姓名
住址 窗体中有两个文本框
如何在textbox1中输入lxl 回车后 textbox2 显示住址地点
如何循环添加住址到 textbox2中 ?
每条新住址都靠左排列 加& VbCrLF & _就行了吗?不好意思我是菜鸟
Text2 = Text2 & " " & Adodc1.Recordset.Fields(2) + Chr(13)