Steven.Ashby82
Registered User.
- Local time
- Today, 02:22
- Joined
- Jan 14, 2013
- Messages
- 63
Dear All,
I'm aware that this is bad practice but I need to have the follow code
store the data as above but I also want the last entry only (not the history as above) to store in a field in my table for report purposes.
Currently everytime text is submitted it is stored in one field which is perfect but I do also need to have the option to only collect the very last input.
Thank you
I'm aware that this is bad practice but I need to have the follow code
Code:
Private Sub butSubmit_Click()
If Me.cboCommentby.ListIndex = -1 Then
Call MsgBox("You need to select a Staff member", vbInformation)
Exit Sub
End If
If Len(Me.TempDataBox) > 0 Then
Me.txtCommentHist = Me.txtCommentHist & vbNewLine & Me.cboCommentby & " " & Now() & " " & Me.TempDataBox
Me.TempDataBox = ""
TempDataBox.Visible = True
End If
Currently everytime text is submitted it is stored in one field which is perfect but I do also need to have the option to only collect the very last input.
Thank you