G
Guest
I am trying to link two feilds in a table. I know how to do this in a form
but I can't figure out how that translates to the table.
There are two feilds:
ChargeCategory and Charges
I need the user to be able to choose a selection from the first feild and
then the selections in the second feild to be limited to those records
relating to the first choice.
Here is what I have tried thus far:
The table name is stblCharges.
The data for the combo boxes is being pulled from tblCharges.
Under Rowsource for the first feild this is what I have:
SELECT DISTINCT tblCharges.Category FROM tblCharges;
Under Rowsource for the second feild this is what I have:
SELECT tblCharges.Legal FROM tblCharges WHERE
(((tblCharges.Category)=[tables]![stblCharges].[Category])) GROUP BY
tblCharges.Legal ORDER BY tblCharges.Legal;
Please let me know what I need to change to make this work. Thank you.
but I can't figure out how that translates to the table.
There are two feilds:
ChargeCategory and Charges
I need the user to be able to choose a selection from the first feild and
then the selections in the second feild to be limited to those records
relating to the first choice.
Here is what I have tried thus far:
The table name is stblCharges.
The data for the combo boxes is being pulled from tblCharges.
Under Rowsource for the first feild this is what I have:
SELECT DISTINCT tblCharges.Category FROM tblCharges;
Under Rowsource for the second feild this is what I have:
SELECT tblCharges.Legal FROM tblCharges WHERE
(((tblCharges.Category)=[tables]![stblCharges].[Category])) GROUP BY
tblCharges.Legal ORDER BY tblCharges.Legal;
Please let me know what I need to change to make this work. Thank you.