I am doing Randomly selecting the questions , when i select from the chapters from the checkboxliat only from that chapters all the questions should display in C# windows forms
using access .
I am getting error like this
Syntax error (missing operator) in query expression 'where chaptername='Electromagnetic Induction''.
and my query is
" SELECT top 5 questions FROM [tblques] ORDER BY Rnd(quescode) where
chaptername=' " + checkedListBox1.SelectedItem + " ' ", con);