Hi,
I have an app that is a multiple choice test, in which the user selects an answer, and is scored on the answer depending which answer he selected. Once answered, the user can not answer the question and change the score again. In order to keep track that the question has already been answered, I have a database table that marks a field with an "X" . When the user exits out of the test, I have code that clears all the Xs out of all the records, so the next time a user starts a test, all the questions will be marked as unanswered. The code I have for doing so is below.
The problem is that it is incredably slow under Windows. It is not so bad on the Mac, but if you have 1800 questions in your recordset, it slows down to a crawl. I was wondering if anyone knew a way to speed up this code or know another way the problem can be handled. Any help would be appreciated.
Code:
//Erases Already Answered Marks
Dim VC As Integer
Dim L as Integer
Dim wq as Recordset
Dim rs as Recordset
VC=rs.RecordCount
wq.MoveFirst
For L = 1 to VC
wq.Edit
wq.field("XX").StringValue=""
wq.Update
Fire5.Commit
wq.MoveNext
Next