Hi
I have a main form which contains questions and a subform within it which contains elements which relate to the main form. they are linked by a field called question_ref so if I page through the records on the main form the elements that are relevant to that question display in the subform.
Within the subform I have a combo box which calls a table which contains the following question_ref and a text field. I would like to be able to make the combo box only display data in the combo box that relates to the current question in the subform.
I have tried setting the rowsource of the combo box as following but is does not display any values.(error enter parameter me.question_ref)
- select tbllookup_comment.question_ref,
-
tbllookup_comment.text
-
from tbllookup_comment
-
where tbllookup_comment.question_ref = me.question_ref (this is a field in my subform)
Any ideas why it is not picking up the data from the me.question_ref field and passing across to the rowsource.
Any help greatly appreciated