I have a form in single form view, called frmProjectsNew. On that form, I have a subform in datasheet view, called frmIncomeSub. Nested within frmIncomeSub, I have another subform in datasheet view, called frmExpensesSub. Both subforms are linked properly with Master & Child fields.
On the nested subform, frmExpensesSub, I have a combo box called cboCategory that gets its values from a query called qryPhaseCategory. Here is the SQL statement for the Row Source property of the cboCategory:
cboPhase is a combo box on the parent subform, frmIncomeSub. No matter how I make the reference to cboPhase, brackets, no brackets, ., !, full reference, Parent etc., I am ALWAYS prompted to enter the value for cboPhase.
As a test, I put a MsgBox in the On Enter event of the cboCategory combo box, with the prompt (Me.Parent.cboPhase) and it Always returns the correct value of cboPhase in the parent subform. I have no idea why the combo box can't retrieve this value. :banghead:
Can anyone help me out with this?
On the nested subform, frmExpensesSub, I have a combo box called cboCategory that gets its values from a query called qryPhaseCategory. Here is the SQL statement for the Row Source property of the cboCategory:
Code:
SELECT qryPhaseCategory.Category FROM qryPhaseCategory
WHERE (((qryPhaseCategory.ParentPhase)=Me.Parent!cboPhase))
ORDER BY qryPhaseCategory.[SortNumber];
As a test, I put a MsgBox in the On Enter event of the cboCategory combo box, with the prompt (Me.Parent.cboPhase) and it Always returns the correct value of cboPhase in the parent subform. I have no idea why the combo box can't retrieve this value. :banghead:
Can anyone help me out with this?
Last edited: