somnophore
New Member
- Joined
- Nov 23, 2004
- Messages
- 8
Hi,
I'm still struggerling with an old problem, in fact its been bothering me for over a month now. The problem is as follows:
I have a form that displays a question via a text box, this question can be answered yes or no.
Depending on the answer (obtained via a command button) a new question is displayed.
This works fine for the first click but then it alternates between the same two questions. The reason behind this is that it is reading the same record from the table and not actually moving to the one desired, even tho it is displaying the question.
The questions are stored in a recordset. The recordset is of four coloumns. These are the node (a identifying number), the question itself (string) and the yes and no fields (both numbers, that tell it which record to look at next).
Any idea as to where ?I am going wrong? My code for clicking on yes at the moment is as follows:
Private Sub yes_Click()
Set db = CurrentDb
Set rs = db.openrecordset("Questions")
rs.Index = "PrimaryKey"
rs.Seek "=", rs.yeslink
fquestions.Value = rs.question
End Sub
Please please help me
ray:
I'm still struggerling with an old problem, in fact its been bothering me for over a month now. The problem is as follows:
I have a form that displays a question via a text box, this question can be answered yes or no.
Depending on the answer (obtained via a command button) a new question is displayed.
This works fine for the first click but then it alternates between the same two questions. The reason behind this is that it is reading the same record from the table and not actually moving to the one desired, even tho it is displaying the question.
The questions are stored in a recordset. The recordset is of four coloumns. These are the node (a identifying number), the question itself (string) and the yes and no fields (both numbers, that tell it which record to look at next).
Any idea as to where ?I am going wrong? My code for clicking on yes at the moment is as follows:
Private Sub yes_Click()
Set db = CurrentDb
Set rs = db.openrecordset("Questions")
rs.Index = "PrimaryKey"
rs.Seek "=", rs.yeslink
fquestions.Value = rs.question
End Sub
Please please help me
ray: