I thought that creating an update SQL that it would add to the existing data in the table but it instead overrides the data with the new data.
I want the ability to add to the end of what is allready there
Code:
Private Sub cmdComment_Click()
Dim strComment As String
strComment = "UPDATE Leave " _
& "SET [Comments] = '" & Me.txtComment.Value & "' " _
& "WHERE ((Leave.[Start Date]) = #" & Me.txtStart.Value & "# AND (Leave.[End Date]) = #" & Me.txtEnd.Value & "#);"
DoCmd.SetWarnings False
DoCmd.RunSQL (strComment)
DoCmd.SetWarnings True
Me.txtComment = ""
End Sub
I want the ability to add to the end of what is allready there