Hello I'm new to this site so sorry if I do something wrong,feel free to correct me :D So here is my question: I'm making some kind of quiz in MS Access and I'm stuck .I've put textboxes on a form (20 of them) and using this code I called the values in txtboxes from table that I made.
Dim a As Integer
Dim txtbox(19) As TextBox
For a = 1 To 20
Controls("Txtbox" & a).Value = DLookup("Question", "questions_and_answers", "[questions_and_answers]![questionID]=Int((20 - 1 + 1) * Rnd + 1)")
Next a
Now I don' want the values to duplicate so I need 20 different values(questions) called and I dont know how ,any help?