I have a movie Database and in a blank form (called "movie_search_year") I created some buttons;
1980's, 1990's, 2000's, 2010's.
I have my main data table, with all my movies (called "movies"), and I have a user friendly form to view individual movies (Called "movie_list").
I want to know the easiest and most efficient way to set these buttons up to only show movies from the corresponding decades when the button is pushed.
Apply a filter somehow? Use VBA? Use queries and SQL?
These buttons are functional at the moment but I think it can be done neater. What I did originally Was created a query for each button and under the year column in the design view of the query put" >1979 <1981....etc. Then I made corresponding forms from each query for user friendliness and set a macro to open those forms when the buttons were clicked.
So Just for 4 buttons I had 4 queries and 4 forms....This is clearly not the way to do it, but I am still new to access and still learning as I go. There has to be a way to have all 4 buttons work properly with just a macro each, or filter each, or one query that updates depending on what button is pushed. Again I am new and would appreciate any help.
1980's, 1990's, 2000's, 2010's.
I have my main data table, with all my movies (called "movies"), and I have a user friendly form to view individual movies (Called "movie_list").
I want to know the easiest and most efficient way to set these buttons up to only show movies from the corresponding decades when the button is pushed.
Apply a filter somehow? Use VBA? Use queries and SQL?
These buttons are functional at the moment but I think it can be done neater. What I did originally Was created a query for each button and under the year column in the design view of the query put" >1979 <1981....etc. Then I made corresponding forms from each query for user friendliness and set a macro to open those forms when the buttons were clicked.
So Just for 4 buttons I had 4 queries and 4 forms....This is clearly not the way to do it, but I am still new to access and still learning as I go. There has to be a way to have all 4 buttons work properly with just a macro each, or filter each, or one query that updates depending on what button is pushed. Again I am new and would appreciate any help.