My goals is that I have a "Status" and a "Substatus" field in combo boxes on my form. I want the substatus query to limit the results based on the value in the Status field.
I found this syntax on this forum for referencing the combo box
[Forms]![frmDoSearch]![Combo0]
I have this as my query. This "almost" works - however it seems that it is not getting the value of the cmbStatus field from the current record. It appears like it is looking only at the first record in my original form query. So if my first record had a status of "Open" - then my substatus lists only the Open substatus. I reversed the order of my query (out of curiosity) so the first record is Closed - then the substatus drop down list contains only closed values. What am I doing wrong?
SELECT MIRFCodes.CodeId, MIRFCodes.Description, MIRFCodes.[Code Type], MIRFCodes.SubTypeOf
FROM MIRFCodes
WHERE (((MIRFCodes.[Code Type])=3) AND ((MIRFCodes.SubTypeOf)=[Forms]![FormMIRFMain]![cmbStatus]))
ORDER BY MIRFCodes.Description;
Thanks a million!