Code:
Private Sub Cmd_Update_Click()
Code:
Dim DB As DAO.Database
Dim sql As String
On Error GoTo Command4_Click_Error
sql = " UPDATE to_dos " _
& " SET DateCompleted = Date " _ '''''''DateCompleted is my field Name
& " WHERE ID = 1"
Set DB = CurrentDb
DB.Execute sql, dbFailOnError
On Error GoTo 0
Exit Sub
Command4_Click_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description _
& ") in procedure Command4_Click of VBA Document Form_Form5"
End Sub
Ok so you do have a button on a form called Cmd_Update and
you do have a numeric Id field in your record?
You need to separate a comment from code with at least one ' (I used several to highlight where this is in your code)