reading a single byte from memo field

ceus's Avatar, Join Date: Oct 2006
Go4Expert Member
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 ???
ratnesh's Avatar
Light Poster
pls try (char type )memory field.