what I have is a table (showing daily ave. temps with the date - mm/dd
separated by the year). I made a form that lists all the dates. Now, I
would like to create either another form that lists the years and if you
click on that year it goes to my original form showing only that year. Or on
the form that shows all the dates, I have a display showing the year but it
only shows the first year in the table/form. If I could have a drop list
there showing all the available dates would be the best option. I am just
learning, so forgive me if this is simple!
guido via AccessMonster.com said:
You can set up a drop-down box with the years as the source. (I would suggest
setting the source of the drop-down to a query based on your main table with
a group-by on the year. That way your list would only contain the possible
years.) Then create an after update event with code similar to this:
Me.Filter = "[YEAR_FIELD] = " & drpYear.Value
Me.FilterOn = True