vb对象refresh的方法iadodc失败
Dimkc_条件AsStringDimkcAsStringPrivateSubCommand1_Click()kc_条件=Me.Text1Adodc1.CommandTy...
Dim kc_条件 As String
Dim kc As String
Private Sub Command1_Click()
kc_条件 = Me.Text1
Adodc1.CommandType = adCmdText
Me.Adodc1.RecordSource = "select * from stu where " + kc + " " + kc_条件
Me.Adodc1.Refresh
End Sub
Private Sub Form_Load()
kc_条件 = ">=92"
kc = "VB"
End Sub
Private Sub Option1_Click()
kc = "VB"
End Sub
Private Sub Option2_Click()
kc = "Math"
End Sub
Private Sub Option3_Click()
kc = "English"
End Sub 展开
Dim kc As String
Private Sub Command1_Click()
kc_条件 = Me.Text1
Adodc1.CommandType = adCmdText
Me.Adodc1.RecordSource = "select * from stu where " + kc + " " + kc_条件
Me.Adodc1.Refresh
End Sub
Private Sub Form_Load()
kc_条件 = ">=92"
kc = "VB"
End Sub
Private Sub Option1_Click()
kc = "VB"
End Sub
Private Sub Option2_Click()
kc = "Math"
End Sub
Private Sub Option3_Click()
kc = "English"
End Sub 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询