G
Guest
Using the following Row Source I can populate a list box from the bound
column of another list box.
SELECT pc.CarrCode, pc.CarrPlanCode, pc.BenefitCode, pc.coverage_ind,
pc.coverage_notes FROM dbo_PlanCoverage AS pc WHERE pc.CarrCode=[lstCoverage]
ORDER BY [BenefitCode];
However, what I really need is to limit the second list box by two columns
of the first list box. Alas, the attempt shown below does not work:
SELECT pc.CarrCode, pc.CarrPlanCode, pc.BenefitCode, pc.coverage_ind,
pc.coverage_notes FROM dbo_PlanCoverage AS pc WHERE pc.CarrCode=[lstCoverage]
AND pc.CarrPlanCode = [lstCoverage.Column(1)] ORDER BY [BenefitCode];
I would appreciate somebody explaining the correct syntax. Thank you.
column of another list box.
SELECT pc.CarrCode, pc.CarrPlanCode, pc.BenefitCode, pc.coverage_ind,
pc.coverage_notes FROM dbo_PlanCoverage AS pc WHERE pc.CarrCode=[lstCoverage]
ORDER BY [BenefitCode];
However, what I really need is to limit the second list box by two columns
of the first list box. Alas, the attempt shown below does not work:
SELECT pc.CarrCode, pc.CarrPlanCode, pc.BenefitCode, pc.coverage_ind,
pc.coverage_notes FROM dbo_PlanCoverage AS pc WHERE pc.CarrCode=[lstCoverage]
AND pc.CarrPlanCode = [lstCoverage.Column(1)] ORDER BY [BenefitCode];
I would appreciate somebody explaining the correct syntax. Thank you.