Results 1 to 2 of 2
  1. #1
    jj1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    128

    Reports showing ID of Field query shows name of field

    I am trying to run graph on a report from query but what's happening is query shows name but report on graph shows ID'S of the field




    Below is my query


    SELECT tblMainTWTTPSheet.txtRootCause, Count(tblMainTWTTPSheet.txtRootCause) AS CountOftxtRootCause
    FROM tblMainTWTTPSheet
    GROUP BY tblMainTWTTPSheet.txtRootCause, tblMainTWTTPSheet.Date
    HAVING (((tblMainTWTTPSheet.txtRootCause) Is Not Null) AND ((Count(tblMainTWTTPSheet.txtRootCause)) Is Not Null) AND ((tblMainTWTTPSheet.Date) Between [Forms]![frmStratificationOfRootCauses]![startDate] And [Forms]![frmStratificationOfRootCauses]![endDate]));


    My bound coloum on main menu form and back end table is 1
    coloum count 2
    coloum width 0;1

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Sounds like you're using a lookup field:

    http://access.mvps.org/access/lookupfields.htm

    In this query you need to add the other table, joined on the ID field, and use the text field instead of the ID field.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 2
    Last Post: 10-19-2012, 01:44 AM
  2. Replies: 1
    Last Post: 09-25-2012, 03:58 AM
  3. Add a field that shows similar reports
    By Angrybox in forum Forms
    Replies: 1
    Last Post: 04-11-2012, 01:55 PM
  4. Replies: 2
    Last Post: 06-29-2011, 11:42 AM
  5. PK field, indexed-no duplicates shows twice in query
    By jhollingsh615 in forum Database Design
    Replies: 2
    Last Post: 05-26-2011, 05:24 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