You could try:
Code:
Dim strSQL As String
Dim rst As DAO.Recordset
strSQL = "UPDATE Stock SET [produitQuantite] = " & me.txtRest & " WHERE [StockID] = " & me.txtStockID
CurrentdB.Execute strSQL, dbfailonerror
This will depend on what the primary key for the stock is, and also on how this is tracked on your (form?).
So you would replace the StockID with your primary key and me.txtStockID with the textbox name you are using on the form.
Make a copy of your database before trying....
Hope this helps. Let me know how it goes...
Nick