When I hardcode the values and execute the SQL statement within Access 2010, the command is executed and the values required are returned.
SELECT [Event ID], [Crowd Size], [Event Name]
FROM Event
WHERE ([Event Date]=#8/11/2012#) AND ([Event Name]="Peter")
However when I use text boxes in place of the hardcoded values
("SELECT [Event ID], [Crowd Size], [Event Name] FROM [Event] WHERE ([Event Name]='" + textBoxEventName.Text + "') AND ([Event Date]=#" + textBoxEventDate.Text + "#)");
When trying to read from the datareader, it is unable to do so as there doesn't seem to be any values in there.
I have gone through the code in debug mode and the values in the text boxes are correct, but still doesn't happen.