Results 1 to 11 of 11
  1. #1
    DavidK111 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    18

    Need more than 64 characters in Title field

    Is anyone aware of a workaround so that I can place more characters than the 64 limited in a field header.

    In essense, I need to export a text or CSV file from Access every day, and the row header for the first column (i.e, in cell A1 if opened in excel) needs to read: "Action (SiteID=US|Country=US|Currency=USD|ListingType=Hal f|Location=US|ListingDuration=GTC)"

    I am currently unable to have a field header with that length, because Access does not allow my table header to be more than 64 characters.

    Is there a simple solution to this problem? Thanks for any suggestions.

  2. #2
    DavidK111 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    18
    Also...just to be clear. I am trying to build a macro that accomplishes this, in hopes to automate the process, with the final step to be the export of the Text or CSV file.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I don't have need to export to CSV so not familiar with nuances.

    That's one field header? How does that relate to 'table header' - what is meant by 'table header'?
    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.

  4. #4
    DavidK111 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    18
    Sorry, thanks for pointing that out. I meant to say field header (not table header). I need to be able to export to a file that has a field header of more than 64 characters. Perhaps this isn't possible to accomplish using Access.

    I may need to go through a separate step of adding code to add additional text to the Text file. I am surprised that there isn't a way to accomplish this within Access since I would imagine that I am one of many people that needs to have a column header that is longer than 64 characters.

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You want to build a table with a field name more 64 characters?

    What export method are you using? If you open a textfile object in VBA and write line-by-line, I expect the string for the headers could be whatever length you want.
    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.

  6. #6
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    So there are 6 pieces of data in that one field?

    needs to read: "Action (SiteID=US|Country=US|Currency=USD|ListingType=Hal f|Location=US|ListingDuration=GTC)"

    I am currently unable to have a field header with that length, because Access does not allow my table header to be more than 64 characters.
    I wonder what the labels for your controls look like on a form.
    No offense, but, ignoring that fact that you are using special characters in the field name, having a field name that is 64 characters is..... I don't have the right word.... maybe "Odd" or "highly unusual".(IMO)

    I imagine creating a query with 5 fields having 64 character names would be a real PITA.

    Unless the dB is for your personal use, no one should see field names, so the actual field names don't really matter. You could use Apples, Oranges and Bananas or F1, F2, F3.

    However, you could use VBA to create the text/CSV file and have the "field names" (what you call column headers) any length you want. Then loop through the record set writing the record to the file.
    I use this method when I have to add info before the actual data records.

    Again, my apologies. I have never heard of anyone using 64 characters for field names.

  7. #7
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    I think you mean text box or label. Tables dont have headers.
    text boxes can have 255 chars.
    memos can have basically unlimited.

    use a table field set to 255

  8. #8
    DavidK111 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    18
    thanks for the replies. Will give both a shot.

  9. #9
    Taj84 is offline Novice
    Windows 11 Access 2016
    Join Date
    Aug 2023
    Posts
    1

    Did you figure it out?

    Quote Originally Posted by DavidK111 View Post
    thanks for the replies. Will give both a shot.

    Hey David! Were you able to overcome the issue? Running into a similar problem.

  10. #10
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Quote Originally Posted by Taj84 View Post
    Hey David! Were you able to overcome the issue? Running into a similar problem.
    Almost a 9 year old thread?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  11. #11
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Table and field names cannot be longer than 64 characters. It is a hard limit.
    See Access specifications - Microsoft Support
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Only characters in field
    By Ruegen in forum Queries
    Replies: 13
    Last Post: 08-03-2014, 08:59 PM
  2. Replies: 9
    Last Post: 02-11-2013, 03:09 PM
  3. Removing certain characters from field
    By topp in forum Access
    Replies: 3
    Last Post: 01-08-2013, 12:36 PM
  4. Wierd Characters in Field
    By RegVaz in forum Access
    Replies: 5
    Last Post: 01-17-2012, 01:46 PM
  5. Grab first characters from field
    By sau3-access in forum Access
    Replies: 1
    Last Post: 10-04-2011, 10:40 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