S
Stacey Crowhurst
Hi. I have a form with two combo boxes.
Combo Box A does this:
SELECT tblAccountCodes.acAccountCodeID, tblAccountCodes.acAccountCodeDesc
FROM tblAccountCodes ORDER BY tblAccountCodes.acAccountCodeID;
Combo Box B does this:
SELECT tblBudgetCodes.bcBudgetCodeID, tblBudgetCodes.bcBudgetCodeDesc FROM
tblBudgetCodes ORDER BY tblBudgetCodes.bcBudgetCodeID;
What I would like to happen is that when the user picks their choice
[acAccountCodeID] for Combo Box A, the list [bcBudgetCodeID]given for Combo
Box B is appropriately filtered.
Here is how the Account Code and Budget Code relate.
The last three characters of the account code are the first three characters
of the budget code. Like so...
Account Code Budget Code
540105 105-100
540105 105-101
540110 110-200
540115 115-300
540115 115-301 etc. etc.
So if a user picks 540105 I only want the budget codes that begin with
105-xxx to show up Combo Box B.
Any ideas or suggestions? Please let me know if you need more information.
Thanks!!!
Combo Box A does this:
SELECT tblAccountCodes.acAccountCodeID, tblAccountCodes.acAccountCodeDesc
FROM tblAccountCodes ORDER BY tblAccountCodes.acAccountCodeID;
Combo Box B does this:
SELECT tblBudgetCodes.bcBudgetCodeID, tblBudgetCodes.bcBudgetCodeDesc FROM
tblBudgetCodes ORDER BY tblBudgetCodes.bcBudgetCodeID;
What I would like to happen is that when the user picks their choice
[acAccountCodeID] for Combo Box A, the list [bcBudgetCodeID]given for Combo
Box B is appropriately filtered.
Here is how the Account Code and Budget Code relate.
The last three characters of the account code are the first three characters
of the budget code. Like so...
Account Code Budget Code
540105 105-100
540105 105-101
540110 110-200
540115 115-300
540115 115-301 etc. etc.
So if a user picks 540105 I only want the budget codes that begin with
105-xxx to show up Combo Box B.
Any ideas or suggestions? Please let me know if you need more information.
Thanks!!!