修改按钮的代码,修改不了,也不报错 10
PrivateSubCommand1_Click()DimrsAsADODB.RecordsetDimsqlAsStringDimmsgstrAsStringsql="s...
Private Sub Command1_Click()
Dim rs As ADODB.Recordset
Dim sql As String
Dim msgstr As String
sql = "select * from Equipment_Type where Type='" & Text1.Text & "'"
Set rs = GoSql(sql, msgstr)
If Not rs.EOF Then
rs.Fields("Type") = Text1.Text
rs.Update
MsgBox "修改成功!", vbOKOnly + vbInformation, "提示"
End If
Set rs = Nothing
Call InLoad
End Sub 展开
Dim rs As ADODB.Recordset
Dim sql As String
Dim msgstr As String
sql = "select * from Equipment_Type where Type='" & Text1.Text & "'"
Set rs = GoSql(sql, msgstr)
If Not rs.EOF Then
rs.Fields("Type") = Text1.Text
rs.Update
MsgBox "修改成功!", vbOKOnly + vbInformation, "提示"
End If
Set rs = Nothing
Call InLoad
End Sub 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询