Results 1 to 11 of 11
  1. #1
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862

    Auto shrink/grow fields

    How can I stop a field moving down when another field auto grows?
    All fields can autogrow/shrink
    Layout
    Field1 Field2


    Field3

    xxx = Field Value
    ..... = Space holders since the site deletes the spaces

    This is what I get:

    xxxxx...................xxxxxxxxxxx
    ...........................xxxxxxxxxxxx
    xxxxxxx

    This is what I want:

    xxxxx..................xxxxxxxxxxx
    xxxxxxx...............xxxxxxxxxxxx

    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    What do you mean 'the site deletes the spaces'? This is downloaded data?

    What you show is 3 records.

    How should Access know to combine the last 2 records?
    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
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862
    There is no combining of fields.
    What I get
    11111111 3333333333
    3333333333
    222222

    What I would like:
    111111 33333333333
    222222 33333333333

    I think I was using the tab to get the spaces and the site doesn't like it.

    Each one is its own disparate field. If you could combine fields 1 and 2 then that would work also.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    I said combine records, not combine fields. If the data is in table as 3 records, how should Access know to output as 2 records?

    I don't know what you mean by 'using the tab to get the spaces and the site doesn't like it'.
    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
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862
    If I put more than on space after a word (like seven) the website will remove the extra spaces. Same as goes with the use of tab on the web site.

    I am looking into combining the records for fields 1 and 2, that would solve the problem. Concatenate?

    Combined_Records:[Change Type] & " " [Soft Level]?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Sorry, I am lost. What does a web site have to do with this? Are you using a web database?

    Can't combine records with a simple expression. That would concatenate the two fields of a single record.

    This sounds like a design flaw in data entry process. Fix the flaw.
    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.

  7. #7
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862
    Apologies,
    I was referencing this website about formatting difficulties. I was trying to separate the fields (1111, 2222, 3333) with spaces and tabs. It doesn't work.

    I want to combine 2 fields from 1 record in the output of a report. Concatenate seems to be the ticket for what I was originally trying to do.

  8. #8
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862
    I have the concatenate figured out. What if I wanted a carriage return between the data?

  9. #9
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862
    I have the concatenate figured out. I figured out by lengthening the spaces between the field ] & " " & [ I can set up the lines (make a "carriage" return) between the fields if I want. Unless there is a better way, I would consider this thread closed.

    Thanks

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Can force carriage return in a textbox or query expression with:

    [fieldname1] & Chr(13) & Chr(10) & [fieldname2]

    In VBA can use:

    [fieldname1] & vbCrLf & [fieldname2]
    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.

  11. #11
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862
    Cool, Thanks!!

    Much easier

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

Similar Threads

  1. Replies: 17
    Last Post: 07-15-2014, 06:17 AM
  2. Replies: 1
    Last Post: 09-25-2013, 10:33 PM
  3. text box to grow or shrink horizontally
    By Ray67 in forum Reports
    Replies: 4
    Last Post: 01-29-2013, 07:50 PM
  4. Replies: 1
    Last Post: 10-10-2012, 12:25 PM
  5. Can list box auto shrink?
    By Buakaw in forum Forms
    Replies: 1
    Last Post: 07-23-2011, 03:16 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