
Problem in Randomly access data from database
I have ms access database and i have a table named Test(ID(primary key),Type,Question,Option1,Option2,Option3,Option4,Answer) and i getting error in it..



Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 23, 2014, 12:57 PM
Ajay KadianPosted Mar 23, 2014, 1:41 PM
VulpesPosted Mar 23, 2014, 1:35 PM
pictureBox1.Image = images[imageIndex];
Other than that it's working fine.
Ajay KadianPosted Mar 23, 2014, 1:30 PM
VulpesPosted Mar 23, 2014, 1:24 PM
Ajay KadianPosted Mar 23, 2014, 1:14 PM
And in this line
Ajay KadianPosted Mar 23, 2014, 11:37 AM
VulpesPosted Mar 23, 2014, 10:30 AM
timer1.Interval =3000;
timer1.Start();
Ajay KadianPosted Mar 23, 2014, 2:21 AM
I have one more question can we rotate set of 4-5 images clockwise in picture box on form load on timer_tick event..
VulpesPosted Mar 22, 2014, 3:15 PM
If it didn't then try hard-coding a value for the 'type' column:
select * from QUESTION order by rnd(ID) where[Type]='someValue'
Ajay KadianPosted Mar 22, 2014, 1:47 PM
select *,rnd(ID) from Test order by rnd(ID)
But there is a problem when i run after closing app the sequence of question are same ..
VulpesPosted Mar 22, 2014, 1:37 PM
One thing I notice is that you're using comboBox1.Text to set the parameter which could be empty.
Instead of that I'd try comboBox1.SelectedItem.ToString().