VB中的Adodc1.Refresh总是出问题,请问你当时是怎么解决的啊?
PrivateSubCommand3_Click()DimsqlxuehaoAsStringsqlxuehao="select*fromceshiwhere学号='"&T...
Private Sub Command3_Click()
Dim sqlxuehao As String
sqlxuehao = "select * from ceshi where 学号= '" & Trim(Text1.Text) & "'"
MsgBox sqlxuehao
Adodc1.RecordSource = sqlxuehao
Adodc1.Refresh----------总是这个地方出问题
DataGrid1.Refresh
End Sub 展开
Dim sqlxuehao As String
sqlxuehao = "select * from ceshi where 学号= '" & Trim(Text1.Text) & "'"
MsgBox sqlxuehao
Adodc1.RecordSource = sqlxuehao
Adodc1.Refresh----------总是这个地方出问题
DataGrid1.Refresh
End Sub 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询