Results 1 to 12 of 12
  1. #1
    speciman_A is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    26

    Display Abbreviation on Report instead of Field Values

    Good day,



    Forgive me if this has been asked before, but I haven't found it and I am relatively new to Access.

    I am building a database with the intent to automate report generation for weekly meetings with my boss. Hopefully, when all is said and done, I will have a presentable report that automatically pulls information from subordinate shops through a front end I will email out. The problem I am having is I have a multi-value combo box with full length text on a form, but only want to display abbreviations on the actual report due to space considerations. For example, I would convert flux capacitor to a three digit code such as FLU. The form would say Flux Capacitor so that the end users don't have to look at a legend to figure it out, but the report would read FLU. Compounding the issue, as I mentioned previously, the field is a multi-value field, which means there may be multiple items listed on the report for one record.

    Hopefully my description is clear, I look forward to any input the gurus out there may provide.

    V/R

    J.C.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    In the report query, have the qry pull the abbrevs.
    put them on the rpt. (and dont use multi-value combos)

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You are saving the full length value and not the abbreviated version into multi-value field?
    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
    speciman_A is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    26
    I have the full length value in a separate table so that the values can be easily changed later on. I used a basic query to pull the values for the combo box. The abbreviations are on the same table, but I'm not sure how to run a query for the report so that the input in the combo box is converted to abbreviations.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    If you save the abbreviation then there is no need to 'convert'. Report should show the saved abbreviation in a textbox control. Might have to manually create the textbox or change combobox to textbox.
    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
    speciman_A is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    26
    The abbreviation is in a separate table so that I can associate it with the full length text, but my combo box uses the full length text. When I generate the report, the full length text is shown because it is the source for the combo box. Sorry if I'm not explaining this well.

    My report looks something like this:
    Last_Name | First Name | Training

    The training field is the multi-value combo box, so when the user opens the respective form and selects all applicable training they have completed, one or more items display on the report. However, instead of displaying the following on the report:

    Dole | Bob | Security Refresher Training, OSHA Certification Training, Don't Sell Secrets Training, Specific Systems Training

    I want it to be condensed as follows:

    Dole | Bob | SRT, OCT, DSST, SST

    I have a table that looks like this:

    Training_Full | Training_Abb

    I created a query that pulls all values in the Training_Full field. This is the query that is the source for my combo box. I need to figure out how to use the Training_Abb for just the report.

    I hope this helps, thanks.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    So you are saving the full text into table? Why don't you save the abbreviation? What are property settings of combobox - RowSource, ColumnCount, BoundColumn, ColumnWidths?

    When you create a TEXTBOX on report and set its ControlSource property to the Training field, do you see abbreviations or the full descriptor?
    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.

  8. #8
    speciman_A is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    26
    Yes, the full text values selected from the combo box are saved into a table. I am not using the abbreviation because I want the user to see the full text. I only want the abbreviations for the report. My row source is the query I mentioned early that pulls all training titles from a separate table with only the values for the combo box. ColumnCount, BoundColumn are set to 1 if I remember correctly.

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    It is possible to set up the combobox so user sees the full text but the abbreviation is saved. That is a multi-column combobox. That is why I asked for the property settings of combobox.

    RowSource: SELECT Abbreviation, Description FROM Training;

    BoundColumn: 1

    ColumnCount: 2

    ColumnWidths: 0";2"


    Otherwise, the report RecordSource will need to be a query that joins the tables.
    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.

  10. #10
    speciman_A is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    26
    Outstanding, I will give it a try and follow-up. Thank you for your patience. I didn't think of setting the ColumnWidth to 0".

  11. #11
    speciman_A is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    26
    June7,

    Looks like your advice is working. Thanks again for the help.

  12. #12
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Or try a combobox on report:

    RowSource: SELECT Description, Abbreviation FROM Training;

    BoundColumn: 1

    ColumnCount: 2

    ColumnWidths: 0";2"
    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.

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

Similar Threads

  1. Memo field 'white box' to display on Report
    By noaccessguru in forum Reports
    Replies: 8
    Last Post: 09-02-2013, 12:21 AM
  2. Replies: 4
    Last Post: 03-01-2013, 11:49 AM
  3. Replies: 1
    Last Post: 03-27-2010, 06:13 AM
  4. Report control of a field display/no display
    By systems013 in forum Reports
    Replies: 5
    Last Post: 02-01-2010, 09:44 AM
  5. Replies: 4
    Last Post: 01-05-2006, 02:36 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