Private Sub 药品编号_Change()
Dim strCriteria As String
Dim strSQL As String
If Not IsNull(Me.药品编号.Text) Then
strCriteria = "Where 拼音码 like '" & Me.药品编号.Text & "*'"
strSQL = "SELECT 药品编号,药品名称, 零售价格 FROM 基本药品信息表 " & strCriteria
Me.药品编号.RowSource = strSQL
End If
Me.药品编号.Dropdown
End Sub
原帖由 Henry D. Sy 于 2009-1-7 20:30 发表
Private Sub 药品编号_Change()
Dim strCriteria As String '条件字符串变量
Dim strSQL As String 'sql字符串变量
If Not IsNull(Me.药品编号.Text) Then '如果药品编 ...
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) | Powered by Discuz! X3.3 |