I have a query that searches a table for relavant data, that seems to be functioning properly on it's own. However I am trying to get it to pull data from a combo box as one of its parameters. Instead of it searching for the title in the combobox, it brings up the enter information popup, which defeats the purpose of the combobox.
Here is the query in question, BookInfoTable is the table I am searching, BookSearchForm is the form where the combobox SelectTitle is located.
Code:
SELECT BookInfoTable.Title, BookInfoTable.Author, BookInfoTable.[ISBN 10], BookInfoTable.[ISBN 13], BookInfoTable.Format, BookInfoTable.Copyright
FROM BookInfoTable
WHERE BookInfoTable.Title=[Forms]![BookSearchForm]![SelectTitle]
ORDER BY BookInfoTable.[Copyright];
I have a suspicion that the issue is somehow involving the combobox row source is feeding the query multiple sets of information, but this was the only way I could get the combobox to work.
The Row Source:
Code:
SELECT [BookInfoTable].[ID], [BookInfoTable].[Title] FROM BookInfoTable ORDER BY [Title];
I have tried to get subinformation from the SelectTitle combobox, but it allways returns no results when I do.
*Edit* I have also thought of making a hidden text box and trying to copy out whatever is selected from the combobox, but I think that would be more of a bandaid fix as opposed to doing it properly. I simply don't quite know how access works in some ways to get it done myself.
Any help would be appreciated, thank you for your time.