Hi all,
I just found this community.
Glad to be here, since I just started working with Microsoft Access.
I'm building a microsoft acess database of my movie collection and wanted some help from you guys.
I have two tables, where the first one contains actors and the second one contains movies.
Table 1 = tblactors
Table 2 = tblmovies
I have also created a Form where the information about the actor is displayed in a nice way.
(Getting information from the tblactor table such as the actors name, age and so on)
Every actor has a unique ID and the same ID is related to movies on the movie table tblmovies.
For example the actor Jack black has the ID 13.
Inside the movie table tblmovies there are alot of movies, and all the movies with the ID 13 belongs to the actor Jack Black.
So far so good....
What I want now is to create a Combo Box inside the Form that I currently have to display information about the actor.
I want the combo box to display the current actors movies.
(They are linked by the same ID, the actor and his movies)
For example when I view the actor Jack Black on the Form I want the combo box to be populated with the movies that share the same ID as actor.
(It should search the tblmovies table for movies belonging to the current actor that is being displayed and show me all the movies belonging to that actor in the combo box)
I have successfully created a combo box that displays the movies from the tblmovies table but the problem is that it displays all the movies that are on that table and not only the movies that belong to the current actor.
I supposes this is possible by creating a Query with criteria to only display the current actor but i have not managed to get this to work the way i want.
I tried some criteria but the closes I got was that when I selected the combo box a parameter value box appeared asking me to enter the ID and after entering the id it displayed the movies of that actor.
But I don't want to enter a value on the parameter value box everytime i switch to a different actor. I want access to get the ID of the current actor that is displayed on the form by itself and populate the combo box with the current actors movies.
Hopefully I will find a solution to this on this community, would be forever thankful.
I just found this community.
Glad to be here, since I just started working with Microsoft Access.
I'm building a microsoft acess database of my movie collection and wanted some help from you guys.
I have two tables, where the first one contains actors and the second one contains movies.
Table 1 = tblactors
Table 2 = tblmovies
I have also created a Form where the information about the actor is displayed in a nice way.
(Getting information from the tblactor table such as the actors name, age and so on)
Every actor has a unique ID and the same ID is related to movies on the movie table tblmovies.
For example the actor Jack black has the ID 13.
Inside the movie table tblmovies there are alot of movies, and all the movies with the ID 13 belongs to the actor Jack Black.
So far so good....
What I want now is to create a Combo Box inside the Form that I currently have to display information about the actor.
I want the combo box to display the current actors movies.
(They are linked by the same ID, the actor and his movies)
For example when I view the actor Jack Black on the Form I want the combo box to be populated with the movies that share the same ID as actor.
(It should search the tblmovies table for movies belonging to the current actor that is being displayed and show me all the movies belonging to that actor in the combo box)
I have successfully created a combo box that displays the movies from the tblmovies table but the problem is that it displays all the movies that are on that table and not only the movies that belong to the current actor.
I supposes this is possible by creating a Query with criteria to only display the current actor but i have not managed to get this to work the way i want.
I tried some criteria but the closes I got was that when I selected the combo box a parameter value box appeared asking me to enter the ID and after entering the id it displayed the movies of that actor.
But I don't want to enter a value on the parameter value box everytime i switch to a different actor. I want access to get the ID of the current actor that is displayed on the form by itself and populate the combo box with the current actors movies.
Hopefully I will find a solution to this on this community, would be forever thankful.