标题: [求助]文本框怎么赋值? [打印本页] 作者: z110120 时间: 2007-3-10 20:12 标题: [求助]文本框怎么赋值? Private Sub Text22_BeforeUpdate(Cancel As Integer)
Me.Text22.ControlSource = Forms!窗体查询!Combo9.Column(2)
End Sub
加了这段语句后反应都没有作者: z110120 时间: 2007-3-10 20:29
Private Sub Text22_BeforeUpdate(Cancel As Integer)
Dim str As String
str = "select 单位代码.单位名称 from 单位代码 where 单位代码.单位代码 like '*" & Me.Combo9 & "*'"
Me.Text22.ControlSource = str
End Sub