I wasn't sure if I should put this in the queries or forms forum, so thought this may be better. Is there a way I can crosspost?
Anyway, I have a database that is used for call logging and management. The main table that keeps the request data ("tblRsq") has a "ProbDis" field that is a "Memo" field.
Form one of the support staff forms based on this table, they can select an open request, review it and add entries to the log (the "ProbDis") field. This is done by entering the text into an unbound control called "TxAddLog". A command button then runs an append query to add the text to the memo field, along with some other information.
All seemed to be working OK. That is until I got a request with quite a lot of text. The original entry into the "ProbDis" field has over 3,000 characters. However, I didn't think that this should be a problem, as a memo field allows upto 64,000 characters. However, when I try to add a log, nothing gets appended to the field contents. When I stopped suppressing messages, it correctly said that I would be updating contents in one record, but still nothing. When I amend the query to allow me to run it manually, it appended OK. ???
The code used is as follows:
On Error Resume Next
If Len(Me.TxAddLog) > 500 Then
MsgBox "Text is too long. Delete some text from the diary entry and re-submit.", vbCritical, "QBE Bromley Support"
Me.Undo
Exit Sub
End If
DoCmd.SetWarnings False
DoCmd.OpenQuery "updateLog"
TxAddLog = ""
Me.Refresh
The query is as follows:
UPDATE TblRsq SET TblRsq.ProbDis = [probdis] & Chr(13) & Chr(10) & Chr(13) & Chr(10) & "Log by " & [forms]![frmmanwip]![suppname] & Chr(13) & Chr(10) & Chr(13) & Chr(10) & "** Log added " & "on the " & Date() & " at " & Time() & " " & "Log number " & [lognumber]+"1" & " **" & Chr(13) & Chr(10) & Chr(13) & Chr(10) & [forms]![frmmanwip]![txaddlog] & Chr(13) & Chr(10) & Chr(13) & Chr(10), TblRsq.LogNumber = [LogNumber]+1
WHERE (((TblRsq.RsqID)=[forms]![frmmanwip]![rsqid]));
Any suggestions as to why this problem maybe occuring?
Thanks,
S
Anyway, I have a database that is used for call logging and management. The main table that keeps the request data ("tblRsq") has a "ProbDis" field that is a "Memo" field.
Form one of the support staff forms based on this table, they can select an open request, review it and add entries to the log (the "ProbDis") field. This is done by entering the text into an unbound control called "TxAddLog". A command button then runs an append query to add the text to the memo field, along with some other information.
All seemed to be working OK. That is until I got a request with quite a lot of text. The original entry into the "ProbDis" field has over 3,000 characters. However, I didn't think that this should be a problem, as a memo field allows upto 64,000 characters. However, when I try to add a log, nothing gets appended to the field contents. When I stopped suppressing messages, it correctly said that I would be updating contents in one record, but still nothing. When I amend the query to allow me to run it manually, it appended OK. ???
The code used is as follows:
On Error Resume Next
If Len(Me.TxAddLog) > 500 Then
MsgBox "Text is too long. Delete some text from the diary entry and re-submit.", vbCritical, "QBE Bromley Support"
Me.Undo
Exit Sub
End If
DoCmd.SetWarnings False
DoCmd.OpenQuery "updateLog"
TxAddLog = ""
Me.Refresh
The query is as follows:
UPDATE TblRsq SET TblRsq.ProbDis = [probdis] & Chr(13) & Chr(10) & Chr(13) & Chr(10) & "Log by " & [forms]![frmmanwip]![suppname] & Chr(13) & Chr(10) & Chr(13) & Chr(10) & "** Log added " & "on the " & Date() & " at " & Time() & " " & "Log number " & [lognumber]+"1" & " **" & Chr(13) & Chr(10) & Chr(13) & Chr(10) & [forms]![frmmanwip]![txaddlog] & Chr(13) & Chr(10) & Chr(13) & Chr(10), TblRsq.LogNumber = [LogNumber]+1
WHERE (((TblRsq.RsqID)=[forms]![frmmanwip]![rsqid]));
Any suggestions as to why this problem maybe occuring?
Thanks,
S