somnophore
New Member
- Joined
- Nov 23, 2004
- Messages
- 8
Hiya,
The current problem I am experiencing is in getting a button when clicked to move to another record. However it isn't just next or previous. It is to one that is determined by a field within the current record.
For example, for question (record) 1 if the user clicks yes it will move to record n where n is listed in the yes field of record 1.
Any ideas?
My code so far is but it keeps giving an error.
Private Sub yes_Click()
Set db = CurrentDb
Set rs = db.openrecordset("questions")
rs.Index = "PrimaryKey"
rs.Seek "=", Yes
tbQ.Value = rs!question
End Sub
Any ideas would be great.
ray:
The current problem I am experiencing is in getting a button when clicked to move to another record. However it isn't just next or previous. It is to one that is determined by a field within the current record.
For example, for question (record) 1 if the user clicks yes it will move to record n where n is listed in the yes field of record 1.
Any ideas?
My code so far is but it keeps giving an error.
Private Sub yes_Click()
Set db = CurrentDb
Set rs = db.openrecordset("questions")
rs.Index = "PrimaryKey"
rs.Seek "=", Yes
tbQ.Value = rs!question
End Sub
Any ideas would be great.
ray: