1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

reading a single byte from memo field

Discussion in 'MS Access' started by ceus, Oct 21, 2009.

  1. ceus

    ceus New Member

    Joined:
    Oct 16, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    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.. :)
     
  2. ratnesh

    ratnesh New Member

    Joined:
    Oct 3, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    lucknow (up)
    pls try (char type )memory field.
     

Share This Page