R
Rob Bunocore
I have built a form that administers a test to users. At the top of
the form, I want to show the user which question they are on and out
of how many...."Question 3 of 33".
I have two unbound text boxes, txtQuestion and txtQuestionTotal.
I have placed code into the OnCurrent property that says
me.txtQuestion = [CurrentRecord]
me.txtQuestionTotal = me.recordsetclone.recordcount
The code works except for one problem. Lets say there are 33
questions. When I first open the form, it says Question 1 of 1. Then
when I move to the next question, it changes to Question 2 of 33. If
I move back to the first, it says Question 1 of 33.
Why wouldn't the recordsetclone.recordcount be accurate when you first
load a form?
Robby
the form, I want to show the user which question they are on and out
of how many...."Question 3 of 33".
I have two unbound text boxes, txtQuestion and txtQuestionTotal.
I have placed code into the OnCurrent property that says
me.txtQuestion = [CurrentRecord]
me.txtQuestionTotal = me.recordsetclone.recordcount
The code works except for one problem. Lets say there are 33
questions. When I first open the form, it says Question 1 of 1. Then
when I move to the next question, it changes to Question 2 of 33. If
I move back to the first, it says Question 1 of 33.
Why wouldn't the recordsetclone.recordcount be accurate when you first
load a form?
Robby