Results 1 to 6 of 6
  1. #1
    jkj115 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    5

    Text box on group footer is linked to a field but is pulling in the wrong column

    Hi Everyone -

    I have a report that has a Footer - in the footer I am subtotaling some information and I want a textbox in the footer to say "Summary For" and then insert the current grouping..So the report is grouped by "Color" and one of the statuses is "Blue". The text box should read "Summary For Blue".


    The problem is the report is pulling in the ID for the Blue field.

    The way the data is set up is there are two tables. The first table has all of the main information and then within that table you can select the color, which is based on a separate table.



    Thanks!

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    In the control's properties, look at the "Data" tab and adjust the "Control Source" to the desired value. This is the property field that will determine what is displayed in your control.

  3. #3
    jkj115 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    5
    There are two tables. In the main table, there is a combo box to select the color. The color table has two columns, an ID and a Color. The Color is what is pulled into the main table. In the report (which is linked to the main table), I select the Color control, but somehow it pulls in the ID from the color table instead of color name from the main table.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Sounds like you have a lookup field in a table. You have a report and want the lookup field to display the relative value of column 2 of the lookup field. Instead, your control on the form is displaying the ID of the lookup field, column 1. Sounds like the bound column of your lookup field is column 1.

    You will have to reference column 2 in your lookup field from the control's properties on the report.

    I am not sure how to do this. I do not use lookup fields. You can try

    FieldName.Column(2)

    I tried searching the web but could not find any reference

  5. #5
    jkj115 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    5
    Thanks - that is helpful. I was able to figure it out by playing with those reference columns in the data table!

  6. #6
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Good deal! I wasn't sure how to go about it.....

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

Similar Threads

  1. Replies: 2
    Last Post: 10-15-2013, 09:30 AM
  2. Replies: 2
    Last Post: 06-21-2012, 07:40 PM
  3. Replies: 5
    Last Post: 06-13-2012, 09:34 AM
  4. Replies: 9
    Last Post: 05-29-2012, 11:03 AM
  5. pulling text values into FK number column
    By REBBROWN in forum Database Design
    Replies: 2
    Last Post: 08-30-2010, 05:04 PM

Tags for this Thread

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