Click to See Complete Forum and Search --> : A couple of questions: Mostly having to do with checking the database


DragonHeart
December 11th, 2002, 11:32 AM
First off, my major problem is trying to figure out how to make it so if a user clicks on a radiobutton it'll set a variable to check against a value in the database, let's say an Answer in the table. When they select it if it's true then it adds a point to the table, something I'm sure I can set, and if it's wrong it does nothing. The next thing would be moving to a different row automatically, will it do that automatically or is there code I have to insert?

Next for some odd reason I cannot view the entire database in my program, even though I know my SQL is correct, it just jumps around and shows a maxium of like 5 different entries. Is there a way around this?

Thanks for all your help guys.

Jym
December 11th, 2002, 12:23 PM
use the radiobutton.checkedchanged event write your code then at the end of the code, you will have to set the focus to the next colomn if you want the focus to be somewhere else ... but after the user has picked a radiobutton you might want to hide it or get disable it or he will just have to click it 100 times to get 100 pts....

unless that's exactly what your assignment asks for, you might want to think of a better way of doing it, like an ok button that moves you onto a different question, changing all the radiobutton.text to the answers to the next question.

DragonHeart
December 11th, 2002, 10:31 PM
Ok so far, but what I don't know is the code. I can read it and understand it, but I obviously don't have enough practice reading it. How would I go about coding this? I'm completely in the dark with this. Thanks once again.