Hi
I have two fields on a table, let's call them Category and SubCategory. Both rightly should have 'Required' set to Yes.
Possible values for both fields are done with lookups so I use a combo in both places. When I select a category the subCategory will need to be requeried. All good when the user doesn't change his mind.
However, if the user selects a value for both fields and the changes his mind about the Category, the problem arises. When the new value is selected, the subCategory is no longer valid but the invalid value remains in the field. I would like to reset the value of the subCategory by assiging a null value, but Access will not let me do this (because of the Required property on the table).
Anyone with a nice solution to this?
I have two fields on a table, let's call them Category and SubCategory. Both rightly should have 'Required' set to Yes.
Possible values for both fields are done with lookups so I use a combo in both places. When I select a category the subCategory will need to be requeried. All good when the user doesn't change his mind.
However, if the user selects a value for both fields and the changes his mind about the Category, the problem arises. When the new value is selected, the subCategory is no longer valid but the invalid value remains in the field. I would like to reset the value of the subCategory by assiging a null value, but Access will not let me do this (because of the Required property on the table).
Anyone with a nice solution to this?