EllisHudson
New member
- Local time
- Today, 11:33
- Joined
- Nov 8, 2020
- Messages
- 1
Hi,
I'm totally new to Access so I'm creating a test application around video games. I have a table for game genres, which my main game table uses a combo box so the user can just tick the genres when adding a new game.
SELECT [tbl_GameGenre].[Genre_ID], [tbl_GameGenre].[Genre_Name] FROM tbl_GameGenre ORDER BY [Genre_Name];
The next step is to be able to search for games using Genre. My query is:
SELECT tbl_Game.Game_Genre.Value, tbl_Game.Game_Name
FROM tbl_GameGenre INNER JOIN tbl_Game ON tbl_GameGenre.Genre_ID = tbl_Game.Game_Genre.Value
GROUP BY tbl_Game.Game_Genre.Value, tbl_Game.Game_Name;
However this does not return the data in the format I need. I would like it to be grouped by Genre, then have a list of games which come under that genre. When I try to remove the name from the grouping list, I get there error: Your query does not include the specified expression "Game_Name" as part of an aggregate function.
I'm totally new to Access so I'm creating a test application around video games. I have a table for game genres, which my main game table uses a combo box so the user can just tick the genres when adding a new game.
SELECT [tbl_GameGenre].[Genre_ID], [tbl_GameGenre].[Genre_Name] FROM tbl_GameGenre ORDER BY [Genre_Name];
The next step is to be able to search for games using Genre. My query is:
SELECT tbl_Game.Game_Genre.Value, tbl_Game.Game_Name
FROM tbl_GameGenre INNER JOIN tbl_Game ON tbl_GameGenre.Genre_ID = tbl_Game.Game_Genre.Value
GROUP BY tbl_Game.Game_Genre.Value, tbl_Game.Game_Name;
However this does not return the data in the format I need. I would like it to be grouped by Genre, then have a list of games which come under that genre. When I try to remove the name from the grouping list, I get there error: Your query does not include the specified expression "Game_Name" as part of an aggregate function.