databasedonr
Registered User.
- Local time
- Today, 12:06
- Joined
- Feb 13, 2003
- Messages
- 163
Greetings all,
I've had a similar problem before and posted to this forum, but have rediscovered this problem.
I am updating records from a form; on the form I have a text box called txtRemarks which writes to a Memo field in the database.
This is the code that I use to write the query:
Dim strQueryComment As String
strQueryComment = "UPDATE tblExhibit SET Remarks= [Forms]![InsertExhibit]![txtRemarks]" _
& "WHERE (tblExhibit.ExhibitID) =" & DMax("[ExhibitID]", "tblExhibit") & ";"
DoCmd.RunSQL strQueryComment
This particular update is designed to add a comment to the last entered record. At the end of the procedure
This works fine for anything up to 127 characters. Once I hit 128 characters, a message is returned:
"You can't carry out this action at the present time"
The application then hangs, the update is not added to the table.
I've seen a similar problem before, where I was trying to write to a memo field from a form textbox using a stored query, and I worked around that one by writing the query in SQL in the code, as I've done here, but no success.
I've looked everywhere I can imagine and found no answers -- has anyone seen anything like this before, and is there a solution or workaround?
I am running Access 2000 on a Windows 2000 Pro machine.
Thanks in advance
I've had a similar problem before and posted to this forum, but have rediscovered this problem.
I am updating records from a form; on the form I have a text box called txtRemarks which writes to a Memo field in the database.
This is the code that I use to write the query:
Dim strQueryComment As String
strQueryComment = "UPDATE tblExhibit SET Remarks= [Forms]![InsertExhibit]![txtRemarks]" _
& "WHERE (tblExhibit.ExhibitID) =" & DMax("[ExhibitID]", "tblExhibit") & ";"
DoCmd.RunSQL strQueryComment
This particular update is designed to add a comment to the last entered record. At the end of the procedure
This works fine for anything up to 127 characters. Once I hit 128 characters, a message is returned:
"You can't carry out this action at the present time"
The application then hangs, the update is not added to the table.
I've seen a similar problem before, where I was trying to write to a memo field from a form textbox using a stored query, and I worked around that one by writing the query in SQL in the code, as I've done here, but no success.
I've looked everywhere I can imagine and found no answers -- has anyone seen anything like this before, and is there a solution or workaround?
I am running Access 2000 on a Windows 2000 Pro machine.
Thanks in advance