Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Canada
    Posts
    284
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    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).

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

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

    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)

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Canada
    Posts
    284
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    Works great now! Thanks, Hans.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •