I have an sql qery that looks at a database to search thousands of mp3 files, it works fine, we have a table that contains the mp3 information, title etc, we also have a table that contains the words that we search that are associated to specific mp3s, i am trying to get the form that has the results of the query return all the words from the second table that relate to the mp3 being viewed
the following is what i have at the moment and a copy of the database can be found at www.colinwebdes ign.co.uk/mp3 database.rar
any help or advice would be appreciated
the following is what i have at the moment and a copy of the database can be found at www.colinwebdes ign.co.uk/mp3 database.rar
Code:
SELECT [mp3].[mp3id],
[mp3].[File],
[mp3].[location],
[mp3].[Artist],
[mp3].[Information],
[mp3].[filename],
[mp3].[Information]
FROM mp3 INNER JOIN mp3voice
ON [mp3].[mp3id]=[mp3voice].[mp3id]
WHERE ([mp3voice].[Voice Type]=[Forms]![Form1]![selected_type_11]
Or [mp3voice].[Voice Type]=[Forms]![Form1]![selected_type_2]
Or [mp3voice].[Voice Type]=[forms]![Form1]![selected_type_3]
Or [mp3voice].[Voice Type]=[Forms]![Form1]![selected_type_4]
Or [mp3voice].[Voice Type]=[forms]![Form1]![selected_type_5]
Or [mp3voice].[Voice Type]=[Forms]![Form1]![selected_type_6]
Or [mp3voice].[Voice Type]=[forms]![Form1]![selected_type_7]
Or [mp3voice].[Voice Type]=[Forms]![Form1]![selected_type_8]
Or [mp3voice].[Voice Type]=[forms]![Form1]![selected_type_9]
Or [mp3voice].[Voice Type]=[Forms]![Form1]![selected_type_10]
Or [mp3voice].[Voice Type]=[Forms]![Form1]![selected_type_1])
GROUP BY [mp3].[mp3id],
[mp3].[File],
[mp3].[location],
[mp3].[Artist],
[mp3].[Information],
[mp3].[filename]
HAVING (Sum(1)=[Forms]![Form1]![HiddenObject]);
Comment