Matt Brown
Registered User.
- Local time
- Today, 12:27
- Joined
- Jun 5, 2000
- Messages
- 120
Hi,
I can't seem to get a combo box to filter another combo box via a query in the row source on a subform.
I have two combos:
SelectCategory
and
SelectItems
In the row source for the SelectItems i have the following query:
SELECT DISTINCT tblTrainingRecordSubForm.Item, tblTrainingRecordSubForm.Category
FROM tblTrainingRecordSubForm
WHERE (((tblTrainingRecordSubForm.Category)=[Forms]![frmTrainingRecords]![frmTrainingRecordSubForm].[SelectCategory]))
ORDER BY tblTrainingRecordSubForm.Item;
This doesn't seem to work.
I always thought that you had to reference the subform item by its parent form.
Everytime i run the form i get the parameter box appear.
Obviously its not finding the other combo box.
Where is my mistake, i have tried a few combinations but to no avail.
Please can someone help me with this.
many thanks
Matt
I can't seem to get a combo box to filter another combo box via a query in the row source on a subform.
I have two combos:
SelectCategory
and
SelectItems
In the row source for the SelectItems i have the following query:
SELECT DISTINCT tblTrainingRecordSubForm.Item, tblTrainingRecordSubForm.Category
FROM tblTrainingRecordSubForm
WHERE (((tblTrainingRecordSubForm.Category)=[Forms]![frmTrainingRecords]![frmTrainingRecordSubForm].[SelectCategory]))
ORDER BY tblTrainingRecordSubForm.Item;
This doesn't seem to work.
I always thought that you had to reference the subform item by its parent form.
Everytime i run the form i get the parameter box appear.
Obviously its not finding the other combo box.
Where is my mistake, i have tried a few combinations but to no avail.
Please can someone help me with this.
many thanks
Matt