I searched and I feel so ignorant... I'm trying to filter a list of songs that were performed this calendar year. Here's the query:
This one works but doesn't filter by date:
Here I tried to filter using =Year(Now())
Here I tried to filter using =Year(Date())
Obviously the last two returned empty results.
I feel so dumb. I appreciate your help!!
Thanks!!
Matt
This one works but doesn't filter by date:
SQL:
SELECT tblSongs.Title, tblEvents.Date
FROM tblSongs INNER JOIN (tblEvents INNER JOIN tblHistLink ON tblEvents.EventID = tblHistLink.EventID) ON tblSongs.SongID = tblHistLink.SongID
ORDER BY tblEvents.Date DESC , tblSongs.Title, tblEvents.Date;
Here I tried to filter using =Year(Now())
SQL:
SELECT tblSongs.Title, tblEvents.Date
FROM tblSongs INNER JOIN (tblEvents INNER JOIN tblHistLink ON tblEvents.EventID = tblHistLink.EventID) ON tblSongs.SongID = tblHistLink.SongID
WHERE (((tblEvents.Date)=Year(Now())))
ORDER BY tblEvents.Date DESC , tblSongs.Title, tblEvents.Date;
Here I tried to filter using =Year(Date())
SQL:
SELECT tblSongs.Title, tblEvents.Date
FROM tblSongs INNER JOIN (tblEvents INNER JOIN tblHistLink ON tblEvents.EventID = tblHistLink.EventID) ON tblSongs.SongID = tblHistLink.SongID
WHERE (((tblEvents.Date)=Year(Date())))
ORDER BY tblEvents.Date DESC , tblSongs.Title, tblEvents.Date;
Obviously the last two returned empty results.
I feel so dumb. I appreciate your help!!
Thanks!!
Matt