Thank-you I promise I have more
Ok here goes
You were absolutely correct.
What I am ultimately trying to do is read from a random file into a form to create a quizer program.
I got the records to load into the file, but because of the LOF it runs through the loop and shows the last questions(i)(lblques, opta, optb, optc, optd.) There are currently 10 questions in the rnd flie that I am pulling from and its the tenth one that shows on the form. How do I get it to read one question let the user click on an opt then go to the next question without using new forms.
formload
open file for Random as #1 Len(Questions(1))
numrecs=LOF(1) /Len(Questions(1))
for i= 1 to numrecs
get#1, , Questions(i)
lbl1= i
lbl2=Questions(1).Question
opt1(0) = Questions(1).optiona
opt1(1) = Questions(1).optionb
opt1(2) = Questions(1).optionc
opt1(3) = Questions(1).optiond
next i
close #1
The above is what I am trying to do am I on the right track?