Results 1 to 4 of 4
  1. #1
    tylerg11 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    200

    Fixed character length of field

    I have a column in my table, and its size is set to 10 characters. In a form, i have a combobox based on that column, which contains the values "Corrective", "Preventive", and "Supplier". both Corrective and Preventive are 10 charcters, and fill up the field to its max, however, Supplier is only 8 characters. When I look back in the table data, there are two spaces after Supplier. Basically, I can use the arrow keys to "see" the two blank character spaces. Why is that? Are these extra blank spaces taking up space they shouldn't?

  2. #2
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 7 Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    I am going to ask a dumb question, but is the culprit when this happens to me from time to time. In the table, where you are pulling "Corrective", "Preventive" and "Supplier" from, do you have extra spaces after the word "Supplier"?

  3. #3
    tylerg11 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    200
    It does. I have to backspace the spaces out manually. I would think that just because the field size is 10 characters, that doesn't mean it should "pad the field" with spaces. I guess it does...

  4. #4
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 7 Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    The combo box, pulls these 3 options from a table correct? Let's say that it pulls these three options from a table named test, so if you open up tbl_test and look at Supplier are there two blank spaces at the end of it?

    Look at the source table, where the combo box pulls the data...Theoretically just because the field length is 10 characters, access will not force any entry to be that length. If your source table has the extra spaces then they are going to appear. If the source table has these spaces, I would remove the word, then retype it in and see if that will remove them from the end.

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

Similar Threads

  1. Length of Stay
    By lhysell in forum Queries
    Replies: 1
    Last Post: 02-02-2011, 10:45 AM
  2. Sort according to field length?
    By wawinc in forum Queries
    Replies: 4
    Last Post: 12-15-2010, 04:27 PM
  3. Convert number to fixed length text field
    By tpcervelo in forum Queries
    Replies: 1
    Last Post: 08-02-2010, 07:26 PM
  4. Replies: 1
    Last Post: 03-09-2010, 10:23 AM
  5. Replies: 1
    Last Post: 06-01-2009, 04:05 PM

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