Hi,
I have a form which pulls up a report; a user can limit the query results by Branch (cmbBranch), Referral Category (cmbRefCategory), and Referral Source (cmbRefSrc -- more specific than Referral Category). What I want to do is, if someone selects a Branch, this restricts what appears in cmbRefCategory. If someone selects a Referral Category, this restricts what appears in cmbRefSrc. I've gotten this to work but it doesn't reset -- if I choose one referral category, and then want to choose a different one w/o first running the report, it doesn't work. I have to open the query builder before it works.
I've been using cmbRefCategory and cmbRefSrc to try and figure this out. The cmbRefCategory list is populated by a query (qryLookupRefCategory) and works fine. In the Row Source Property of the Referral Source combo box, I have
SELECT [qryLookupRefSrc].[referral_source_id], [qryLookupRefSrc].[referral_source], [qryLookupRefSrc].[referral_category_id] FROM qryLookupRefSrc WHERE ((([qryLookupRefSrc].[referral_category_id]) Like [Forms]![frmRefSrc]!cmbRefCategory));
This works but, as I said above, it doesn't reset. Please help, and thanks very much!
I have a form which pulls up a report; a user can limit the query results by Branch (cmbBranch), Referral Category (cmbRefCategory), and Referral Source (cmbRefSrc -- more specific than Referral Category). What I want to do is, if someone selects a Branch, this restricts what appears in cmbRefCategory. If someone selects a Referral Category, this restricts what appears in cmbRefSrc. I've gotten this to work but it doesn't reset -- if I choose one referral category, and then want to choose a different one w/o first running the report, it doesn't work. I have to open the query builder before it works.
I've been using cmbRefCategory and cmbRefSrc to try and figure this out. The cmbRefCategory list is populated by a query (qryLookupRefCategory) and works fine. In the Row Source Property of the Referral Source combo box, I have
SELECT [qryLookupRefSrc].[referral_source_id], [qryLookupRefSrc].[referral_source], [qryLookupRefSrc].[referral_category_id] FROM qryLookupRefSrc WHERE ((([qryLookupRefSrc].[referral_category_id]) Like [Forms]![frmRefSrc]!cmbRefCategory));
This works but, as I said above, it doesn't reset. Please help, and thanks very much!