Option控件和文本框的运用
我用两个控件option1与iption2,一个文本框,当选择option1时,文本框等于:"select * from dbo.Medicine where spell like'" _
& Text1.Text & "%" & "'"
选择option2时,
文本框等于:"select * from dbo.Medicine where fivepen like'" _
& Text1.Text & "%" & "'"
我是这样写的:If Option1.Value = True Then
text1.text = med
先申明 Dim med As String
med = "select medname,medspec,fivepen,spell from dbo.Medicine where spell like'" _
& Text1.Text & "%" & "'"
运行不行,请各位指教。