Results 1 to 2 of 2
  1. #1
    Ekhart is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jun 2016
    Posts
    80

    Replace data when running report


    Bear with me as I am new to Access.
    I am trying to find a way to replace data in a column when I run the report. The problem is some of the lines are too long. I may have text similar to 'Iowa City - Iowa Downtown Project 2', Project 3, 4, etc etc. I would like the report to replace 'Iowa City - Iowa Downtown' with 'ICDT'.
    I am not sure if this would require some code or if Access has another method for doing this.

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    sounds like a design flaw in you table - limit the number of characters for the field to the number you want to display so the user comes up with a suitable abbreviation themselves.

    Otherwise there are four options
    - have a lookup table to maintain the abbreviation
    - or have a calculation to (for example) capture the capital letters, or the first 4 characters that appear after a space and are a capital letter, or appear before the word 'Project'

    Both these options will suffer from the same problem - how consistent are the values in this column to provide a value to lookup or calculate on?

    The 3rd option is to have another field in your table which the user populates with an abbreviated value

    The 4th option is to split the column in the table (and input form) into an abbreviatable part and a non abbreviatable part - which might then work with first two options

    A fifth option is to reduce the font size in your report

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

Similar Threads

  1. Replies: 2
    Last Post: 03-06-2016, 04:23 AM
  2. Possible to Import data and replace some, but not all, in table?
    By IncidentalProgrammer in forum Import/Export Data
    Replies: 2
    Last Post: 02-17-2015, 09:30 AM
  3. Replies: 2
    Last Post: 11-13-2014, 02:17 PM
  4. Replies: 2
    Last Post: 10-01-2014, 02:05 AM
  5. Replies: 3
    Last Post: 06-07-2012, 07:05 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