I have a command button that when clicked changes the value to "In Progress" and adds the current date time to a subform.
Private Sub cmdStart_Click()
Me.Status.Value = "In Progress"
Me.tblTaskTimes_subform!Start = Now()
End Sub
This is working fine now, but I also need to change the "Status" on a table tblProjects. I've been trying to get the doCmd Update to work, but I've been unsuccessful since Friday. I'm a complete novice at VBA, can anyone help me out.
Thanks, even pointing to a good / clear article might help, but I've read several and keep getting it wrong.
DoCmd.RunSQL "UPDATE tblProjects Set Status=InProgress" WHERE ID = Me.Progrect"