Results 1 to 6 of 6
  1. #1
    Yarbz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    13

    Change Text field to Memo Field in a Query

    Greetings All,


    I have a table with multiple text fields which I combine into one field. But sometimes there's too much info for the text field. Is there any way in the Query to change that field to a memo field.

    I.E. I have [Axis1-1], [Axis1-2], [Axis1-3] etc. thru [Axis1-10], which I combine in to one field called [AxisI].
    [AxisI] is sometimes more than 255 character long, there for it truncates the info.

    I'm somewhat of a newbie, so any help would be appreciated.
    Yarbz

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Concatenation should not be a problem. I have done this and the the length of string was greater than 255 characters.

    Why do you need to do this?

    Review http://www.databasedev.co.uk/access_specifications.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Yarbz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    13
    Quote Originally Posted by June7 View Post
    Why do you need to do this?
    It's for the Doctors where I work.
    The standard report has all the Axis' on a new line.
    i.e.
    Axis I: DEMENTIA DUE TO GENERAL MEDICAL CONDITION;
    MOOD DISORDER DUE TO.. (INDICATE THE GENERAL MEDICAL CONDITION),;
    ALCOHOL DEPENDENCE;
    CANNABIS ABUSE;

    And they prefer to see it in sentence form:
    Axis I: DEMENTIA DUE TO GENERAL MEDICAL CONDITION; MOOD DISORDER DUE TO.. (INDICATE THE GENERAL MEDICAL CONDITION),; ALCOHOL DEPENDENCE; CANNABIS ABUSE;

    In this case it's not over 255 characters, but in the Axis3 diagnosis (medical problems) it usually is more than not. If I can get that field to be a Memo field instead of a Text field it would hold everything, but... I can't figure out how to create a Memo field from a query or SQL statement.

    Yarbz

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    I don't understand why you have this issue. As stated, I concatenate fields into a string greater than 255 characters without problem. Cannot 'define' field type in a query. Data is what it is.

    Unless you want to provide db for analysis, can't help. Follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Yarbz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    13
    Thanks, but the backend database is way too big (380,864 KB) and is confidential.

    I ran the query and then placed it into a word file and did a word count. You were right, it stops at 307 characters, and the one I checked was 567 charaters long. So it cut almost half of it off, hence the need for a Memo feild.

    Is there anyone else who has a suggestion?
    Yarbz

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    I concatenated fields repeatedly until I got 1287 characters and then quit testing. The entire 1287 character string was viewable in the query.

    Concatenation itself is not the issue. Something else is happening. The backend is an Access file?

    I don't need entire dataset. A few sample records might be enough. Remove confidential data (names, ssn, phone, email). Extract to another Access file or a spreadsheet.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 06-19-2012, 10:46 AM
  2. rich text memo field
    By jedder in forum Reports
    Replies: 1
    Last Post: 05-11-2012, 02:48 PM
  3. Replies: 20
    Last Post: 09-06-2011, 12:39 PM
  4. Highlight text in memo field
    By silverspr in forum Programming
    Replies: 2
    Last Post: 03-27-2011, 04:58 PM
  5. Need help with Memo field text format
    By sprovoyeur in forum Access
    Replies: 1
    Last Post: 05-14-2010, 08:03 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums