大侠们。Private Sub TV_NodeClick(ByVal node As node) txtXm.text = node.Text Dim rsName As Recordset Set rsName = dbYY.OpenRecordset("select * from employee where 姓名='" & txtXm & "'") txtBh.Text = rsName!编号 txtXm.Text = rsName!姓名 cmbXb.Text = rsName!性别 End Sub中的 txtXm.text = node.Text是什么意思? 为什么我换成 txtBh.text = node.Text 就提示我No Current Record ?
nd.Expanded = True
.Nodes.Add nd, tvwChild, "日小时电量曲线", "日小时电量曲线", lis("电量分析").Index
'.Nodes.Add nd, tvwChild, "周每日电量曲线", "周每日电量曲线", lis("电量分析").Index
.Nodes.Add nd, tvwChild, "月每日电量曲线", "月每日电量曲线", lis("电量分析").Index
.Nodes.Add nd, tvwChild, "年每月电量曲线", "年每月电量曲线", lis("电量分析").Index
Set nd = .Nodes.Add(, , "功率分析", "功率分析", lis("功率分析").Index)
nd.Expanded = True
.Nodes.Add nd, tvwChild, "日小时功率曲线", "日小时功率曲线", lis("功率分析").Index
'.Nodes.Add nd, tvwChild, "周每日功率曲线", "周每日功率曲线", lis("功率分析").Index
.Nodes.Add nd, tvwChild, "月每日功率曲线", "月每日功率曲线", lis("功率分析").Index
.Nodes.Add nd, tvwChild, "年每月功率曲线", "年每月功率曲线", lis("功率分析").Index
.Nodes.Add nd, tvwChild, "日小时功率因数曲线", "日小时功率因数曲线", lis("功率因数").Index
.Nodes.Add nd, tvwChild, "年每月最大需量曲线", "年每月最大需量曲线", lis("最大需量").Index
With tvAnaTree ..........
end with中间
txtXm.text = node.Text
Dim rsName As Recordset
Set rsName = dbYY.OpenRecordset("select * from employee where 姓名='" & txtXm & "'")
txtBh.Text = rsName!编号
txtXm.Text = rsName!姓名
cmbXb.Text = rsName!性别
End Sub中的 txtXm.text = node.Text是什么意思?
为什么我换成 txtBh.text = node.Text 就提示我No Current Record ?