Results 1 to 5 of 5
  1. #1
    allstar45 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2012
    Posts
    35

    (simple) Display Memo in text box (255 limiting issue)

    I have a table, with one of the fields being of type memo.


    I want to display a member from that table, selected by user via combo box, in a text box.

    I have a combo box which does allow the user to select a row in the table with the "after update" event being:

    Me.textbox = Me.combo.Column(0)

    Which works, but the problem is this only shows the first 255 charactors of the memo field. Is there some way (mabie using the Control Source property of the text box) to show the COMPLETE Memo data member???

    PS
    I must use a text box since it later gets used to go somewhere else(another table after modification), so I'm quite sure a subreport would be doable.


    Any input welcome
    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    Is this a form or a report?

    The memo field is a column of the combobox and it is the first column? I think the limitation is not the textbox, but the combobox. It may be pulling only the first 255 characters.

    Options:
    Use record ID from combobox RowSource (which column is it in) as criteria for a DLookup on the memo field of the table in textbox ControlSource.
    Subform with MasterChild links on the ID fields.

    Why does memo contents go somewhere else?
    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
    allstar45 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2012
    Posts
    35
    This is a form, not a report.
    That is correct, and I think you're right, that the limit is in the combo box it's self.
    I could use a DLookup with the ID, but queries also limit memo fields to 255, is there a way to prevent that?

    I can't use a Subform because I want to be able to change the text without it making changes to the actual table.

    The memo contents don't themselves go somewhere, but what I want to happen is, user selects a member from the combo box, that member is displayed in the text box, user makes changes, adds things, deletes things to in the text box, and that new content that the user made, and after hitting a command button it is then put in a different table as something completely different.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    Yeah, memo fields are a pain. But I don't know what you mean by queries limiting memo fields. I have reports that use a query as RecordSource and the memo field data comes through just fine. Maybe the DLookup has a limitation.

    In which case, recourse might be to first create the record in the other table and bind form to that record and allow user to do edits. So the question is, can an INSERT SELECT sql action pass the full contents of memo field. I just tested a MAKE TABLE sql action and that worked so I expect the other will.
    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
    allstar45 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2012
    Posts
    35
    Alright I will have to try this tomorrow,
    Thanks for the help!
    I'll let you know how it went~

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

Similar Threads

  1. Memo -- SQL text fields
    By jim56 in forum Access
    Replies: 0
    Last Post: 12-01-2011, 03:54 PM
  2. Limiting textbox to number issue
    By GraemeG in forum Programming
    Replies: 3
    Last Post: 03-29-2011, 07:25 AM
  3. Replies: 4
    Last Post: 07-28-2010, 10:27 AM
  4. Simple issue?
    By Patience in forum Access
    Replies: 8
    Last Post: 05-29-2010, 07:02 AM
  5. extract text from memo
    By lions1855 in forum Queries
    Replies: 2
    Last Post: 05-03-2010, 07:28 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