Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MS Access (http://www.go4expert.com/forums/ms-access-forum/)
-   -   reading a single byte from memo field (http://www.go4expert.com/forums/reading-single-byte-memo-field-t19838/)

ceus 21Oct2009 10:35

reading a single byte from memo field
 
Hi friends,
I have a strange problem, i have an mdb file which has a table (which contains records of type MEMO), i am using CRecordSet Class to read the record from the database, but when the record size is 1 byte i am not able to read the record, Eg: Say in table Names
If I have names like "greece" "Athens" "India" etc.. i am able to read in this case
but when the record contains a single byte like "a" "b" "c" then it is throwing an exception, and unfortunately the exception is blank.
Please help me why with MEMO field type if i have a single byte in a record i am not able to read it to CString ???
Thanks.. :)

ratnesh 3Oct2010 10:46

Re: reading a single byte from memo field
 
pls try (char type )memory field.


All times are GMT +5.5. The time now is 10:37.