debbiedoobie10
Registered User.
- Local time
- Today, 09:00
- Joined
- Oct 1, 2010
- Messages
- 13
I get an 'Update or CancelUpdate without AddNew or Edit' error when running the following code. When I move off the record. Does anyone have a suggestions
Function NewNote()
Dim NEWNOTES As String
With CodeContextObject
.[ContBy] = DLookup("[AGENT CODE]", "SALES AGENTS", "[AGENT LOGON] = CURRENTUSER()")
.[This] = Date
.NOTES.SetFocus
NEWNOTES = Format(Now(), "mm/dd/yy h:nna/p") & " " & DLookup("[USER_INIT]", "USER-PIN ", "[USER NAME] = CURRENTUSER()") & " > " & Chr(13) & Chr(10)
.NOTES = NEWNOTES & .NOTES
.NOTES.SelStart = Len(NEWNOTES) - 2
End With
End Function
Function NewNote()
Dim NEWNOTES As String
With CodeContextObject
.[ContBy] = DLookup("[AGENT CODE]", "SALES AGENTS", "[AGENT LOGON] = CURRENTUSER()")
.[This] = Date
.NOTES.SetFocus
NEWNOTES = Format(Now(), "mm/dd/yy h:nna/p") & " " & DLookup("[USER_INIT]", "USER-PIN ", "[USER NAME] = CURRENTUSER()") & " > " & Chr(13) & Chr(10)
.NOTES = NEWNOTES & .NOTES
.NOTES.SelStart = Len(NEWNOTES) - 2
End With
End Function