Parameter query on Tabbed Form Syntax
Hello!
I have a form with a cascading combo box - that works fine when it is opened by itself. However, when I make it a subform on an Tabbed Access Form - it cannot find the field for the criteria. I am pretty sure it is a Syntax thing - but I can't figure out what it should be.
The form is frmInterest. When I put it in the Tab I linked the Member ID of the frmIntersrt to the ID of the parent form Contact Details. The form has 2 other fields - InterestMAin and interestsub - which are the dependent combo boxes. (pick a Main Interest Category and then the interest associated with that should appear.) I have thee requry code on the after update event of the main Interest Combo box and that is where it errors asking me for the value of that Combo box.
When debuging on the after update event of the cbointerestmain combo box this is what I got for the form names:
print Me.Parent.ActiveControl.Name
FrmInterestSub
print me.Name
FrmInterest
print Me.ActiveControl.Name
cboInterestMain
print me.Parent.name
Contact Details
So the Where cause in my query for the cboInterestsubName Combo box (the dependent combo box) is:
[Forms]![contact details]![frminterestsub].[Form]![frminterest].[form]![cbointerestmain]
I have tried various combonations of this to try to get it to see the combo box but it keeps asking for the value.
if in the Immediate window I type print cbonterestmain.value - it returns the value - so it does have it - I just can't seem to reference it properly in the query.
I know it should not matter that it is on a Tab -so I am wondering if it is because I want the subform to populate another value within the subform....
Any help with this would be appreciated before i pull out all my hair.