Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

"Data Truncated" with Memo-field (CRecordset)

Posted on 1998-09-07
6
Medium Priority
?
517 Views
Last Modified: 2013-11-20
Hi all,
I've got a problem reading data from an Microsoft Acess-table (office 97) with a memo field. I derived a class from CRecordset with a wizard and I pointed to the table, so the wizard could create member variables like this:

      long m_ID;            //unique ID, autonumber
      CString m_Label;      //Text field
      CString m_Text;            //Memo field

Whenever I do a MoveNext, the next record is read and the values are stored in the derived CRecordset-object, let's call it CMySet. The problem is: When the memofield exceeds a
certain number of characters (I don't know exactly how many, I don't like counting), I get a CDBException "Data Truncated".  But I read somewhere in the help that "A CString object can store up to INT_MAX (2,147,483,647) characters". Does anyone have experience with memofields?
Thanks in advance!
Melissa      
0
Comment
Question by:MelissaC
  • 4
  • 2
6 Comments
 
LVL 2

Author Comment

by:MelissaC
ID: 1321867
Adjusted points to 100
0
 
LVL 2

Author Comment

by:MelissaC
ID: 1321868
Adjusted points to 140
0
 
LVL 2

Expert Comment

by:connex
ID: 1321869
What is the nMaxlength parameter of the RFX_Text-Call?


0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 2

Author Comment

by:MelissaC
ID: 1321870
Adjusted points to 185
0
 
LVL 2

Author Comment

by:MelissaC
ID: 1321871
Thanks for the hint, connex. I found out the problem. It was in the RFX_Text call. If you propose the answer, I'll give you the points. Thanks!
0
 
LVL 2

Accepted Solution

by:
connex earned 540 total points
ID: 1321872
as wished .)

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question