Results 1 to 12 of 12
  1. #1
    bbelly is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2014
    Location
    Edmonton, Ab, Can
    Posts
    19

    Text box truncates at ~250 characters

    Win 10 / Access 2016 / 64 bit. Still struggling through the transformation from Excel to Access.



    _FINALLY_ got long text fields into access - I see 'em there in the table. When I try to present them on a form, only ~250 characters appear. I've formatted table and form as long text, "Can Grow = Yes". Am I missing something? Thanks for the help.

    (Isn't it odd that Access should have so much trouble handling something as simple as text?)

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    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
    bbelly is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2014
    Location
    Edmonton, Ab, Can
    Posts
    19
    That doesn't seem to address my issue. I have the text in a table - longest one is about 7,000 characters, and it's all there! (It came from Excel - that was a huge headache in its own right, and I have no idea how I finally got complete records imported - twice in separate files). I've copied the second version of the complete table to my working file - same problem. I only have 54 fields - the 'Plot' field is # 29.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Sorry, I rushed reading through your post.

    CanGrow doesn't seem to work on form, as far as I ever observed, unless possibly when printing a form. That's why textboxes have vertical scroll bar. I've never had issue displaying long text but have to use scroll bar to read all. CanGrow works just fine on report.
    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
    Join Date
    Apr 2017
    Posts
    1,679
    Create 2 forms based on your table. One with Long Text field hidden, another with hidden primary key field control and the Long Text field control (textbox)

    Create an unbound form with 2-page tab control and an invisible text box. In OnOpen event of form set the value for text box for topmost PK value from tour table by any condition you like.

    Add 2 forms based on your table to unbound form as subforms - either of them on own page of tab control. Link them to hidden text box on main form.

    On first page (with all controls in form), in subform's (the source form of subform) OnCurrent event, store the current PK value to hidden text box on main (unbound) form. In BeforeUpdate event, set hidden text box for Long Text field equal with Long Text field on form on second tab.

    On second page, disallow adding and deleting records. Dimension the form there so that it fills the whole page of tab control, and the text box so, that it fills the whole form (NB! This form must be single, the form on first page can be single or continuous!).

    Now whenever you select a record on form on 1st page, on 2nd page the Long Text field for this record is displayed (and you can edit it).

    Edit. I remembered I did see here lately a design, where form controls were distributed to pages of tab control on form. Have never used this design myself, but maybe this is applicable instead of subforms pair, so there will be no need to design all those events.
    Last edited by ArviLaanemets; 12-05-2017 at 05:58 AM.

  6. #6
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Can grow really only works on reports, you can however display a report on a form, which can be handy for variable length memo / long text fields.
    Also have a read here http://allenbrowne.com/ser-63.html
    It's possible you have something in your underlying forms query that might be truncating the data.

  7. #7
    Join Date
    Apr 2017
    Posts
    1,679
    What is the TextFormat property of your text box? When it is "Rich Text", try to set it to "Plain Text" instead.

  8. #8
    bbelly is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2014
    Location
    Edmonton, Ab, Can
    Posts
    19
    As a neophyte in Access, I am again guilty of failing to supply all the parameters, and in realizing this, I believe I have identified the root of my problem.

    The text box is populated by a 'search while typing' application. (OpenGate Software) The text box represents the contents of the 29th column of the selection in that text box. And so THAT must be where the truncation is happening.

    So the solution seems obvious yet elusive to me (though I will start chasing it while awaiting any help offered here). I need to base the contents of my 'plot' text box on the ID number which can pull the required cell contents directly from the table. But how ???

    The 'plot' text box control would be something like "show the contents of the column 'plot' of record number '666' where record number is currently generated in a text box by the Control Source

    =[lstItems].[Column](0)

    if I have sufficiently explained the situation, perhaps a solution is forthcoming. Meanwhile, I wade in with low boots.

  9. #9
    Join Date
    Apr 2017
    Posts
    1,679
    Is this text box on form which has the table as source? When yes, then why to search for it's contents at all - simply set text box control source to according field in table. When not, then you have to give more detailed description of your set-up for us to make some suggestions.

  10. #10
    bbelly is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2014
    Location
    Edmonton, Ab, Can
    Posts
    19
    Further ...

    In a particular (search) text box one enters " 'T' 'H' 'E' ... ". After two letters, a list box begins to drill down with selections containing the searched for text. At some point, the desired Title can be selected, which in turn fills out the rest of the fields on the form - 'Year', 'Genre', 'Language', and 'Plot', among others. (A great many are simply "Yes/No" boxes) The selection list box is a mirror of the table, having some 54 columns, which are the source for the rest of the form (most of those columns will be set to width "0cm" to hide them away.) Wish to have the entire contents of the field 'Plot' for the selected Title appear in the appropriate text box. Currently, it is truncated at that ~250 character limit.
    It seems to me that given that I know the selected records ID number is "666" , how do I pull the contents of field "Plot" of record "=[lstItems].[Column](0)" (which is the Control Source that populates the 'ID' text box from the selection) directly from the table, bypassing the listbox which seems to only supply the ~250 characters.

    I hope at some point I can explain my situation adequately - (I think I have "known unknowns" challenged by "unknown unknowns" )

  11. #11
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    bbelly,

    I suggest you do a compact and repair on your database or a copy. Then zip a copy and attach to the thread.
    If you give specific instructions of how to repeat something you are doing, users can 'experience' what you have.
    It may be the easiest/efficient to reconcile the issue.

  12. #12
    Join Date
    Apr 2017
    Posts
    1,679
    It looks like you have a combo box or list box there, not a text box. There is the 255 character limit for control source length, and for record source text length (selection list or query string) for combo box and for list box, and I'm afraid in both cases 255 characters is upper limit to display too.

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

Similar Threads

  1. Linked Excel file to Access Form truncates text
    By rlbordonaro in forum Access
    Replies: 3
    Last Post: 12-14-2017, 10:50 PM
  2. ImportExportSpreadsheet truncates Long Text to 255, please help
    By Sephaerius in forum Import/Export Data
    Replies: 13
    Last Post: 04-14-2016, 06:14 AM
  3. text with odd characters
    By vicsaccess in forum Programming
    Replies: 3
    Last Post: 01-16-2016, 02:29 PM
  4. Unbound text box truncates leading zeros
    By brharrii in forum Forms
    Replies: 4
    Last Post: 01-10-2016, 08:06 PM
  5. Replies: 4
    Last Post: 07-14-2015, 11:41 AM

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