è¯ç¼å代ç å¦ä¸ï¼
Private Sub Command1_Click()
Dim db As New ADODB.Connection
Dim RS As New ADODB.Recordset
Dim sql As String 'SQLå符串
db.ConnectionString = "provider=Microsoft.Jet.OLEDB.4.0;Data source =D:\Projects\temp\data.mdb" 'æ°æ®åºè¿æ¥
db.Open 'æå¼æ°æ®åº
sql = "UPDATE [user] SET Sl=Sl-" & Text1.Text & " WHERE Xm='å¼ ä¸';"
RS.Open sql, db, 1, 3
Set db = Nothing
Set RS = Nothing
End Sub
è¿è¡æªå¾ï¼