Microsoft Access
--
Questions
--
Followers
Top Experts
Setting up an SQL query for Song Title
SELECT tblTitles.TitleID, tblMediaType.MediaTypes, tblTitles.Title, qrySongTitle.MediaTitle, tblTitles.TitleNumber, tblTitles.GroupPerformer, qrySongTitle.SongTitle, qrySongTitle.SideDiscNumbe
FROM (tblMediaType INNER JOIN tblTitles ON tblMediaType.[MediaTypeID]
WHERE (((qrySongTitle.SongTitle)
ORDER BY tblMediaType.MediaTypes;
I would like to create an action that will bring up a form to get the Song to search for, put that into a variable and plug that variable into the above SQL statement programmatically. Â I have created a report that would then display the results of the query as seen in the attached file.
I have it working manually be typing in the Song to search for in the SQL statement, saving the SQL Query and then opening the report.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
I don't tell how to implement the entry form but I have a few notes to your WHERE clause:
1) Why so many parentheses? If you remove them then it looks much simpler
WHERE qrySongTitle.SongTitle = "Rudolph The Red Nosed Reindeer"
2) Why are you using the exact match? SQL allows to ask for a beginning of the title:
WHERE qrySongTitle.SongTitle LIKE "Rudolph The Red%"
or you may even search for a substring:
WHERE qrySongTitle.SongTitle LIKE "%The Red%"
BTW, No file is attached to your question.
I've added SSRS topic to the question.
1) Why so many parentheses? If you remove them then it looks much simpler
WHERE qrySongTitle.SongTitle = "Rudolph The Red Nosed Reindeer"
2) Why are you using the exact match? SQL allows to ask for a beginning of the title:
WHERE qrySongTitle.SongTitle LIKE "Rudolph The Red%"
or you may even search for a substring:
WHERE qrySongTitle.SongTitle LIKE "%The Red%"
BTW, No file is attached to your question.
I've added SSRS topic to the question.
hmm, looks like the MS Access query designer.. which would explain the parentheses ;)
OK, I see the images finally.
So I've removed SSRS and added MS Access topic.
So I've removed SSRS and added MS Access topic.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
ASKER CERTIFIED SOLUTION
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Microsoft Access
--
Questions
--
Followers
Top Experts
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.