• How do I get the year I select to show? (Access 2000)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » How do I get the year I select to show? (Access 2000)

    Author
    Topic
    #410341

    I have a report that prints out and shows the year I selected, but I want to put that year in the Title of my report. I have the Title referenced as =[Forms]![frmSelectCategories]![cmbSelectSchoolYear]

    When I preview my report, I get the SchoolYearID instead of the SchoolYear. I have the combo box showing the SchoolYear when I select the dropdown. But for some reason my Title is refering to the primary key (SchoolYearID) instead of the SchoolYear I selected (2004/2005).

    Viewing 1 reply thread
    Author
    Replies
    • #881233

      Your combo box probably has more than one column. If the first column is SchoolYearID, and the second column is SchoolYear, you can use

      =[Forms]![frmSelectCategories]![cmbSelectSchoolYear].[Column](1)

      (Columns are numbered starting at 0, so Column(1) is the second column)

    • #881234

      Your combo box probably has more than one column. If the first column is SchoolYearID, and the second column is SchoolYear, you can use

      =[Forms]![frmSelectCategories]![cmbSelectSchoolYear].[Column](1)

      (Columns are numbered starting at 0, so Column(1) is the second column)

    Viewing 1 reply thread
    Reply To: How do I get the year I select to show? (Access 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: