Example
I have 2 fields in a query:
A = [null]
B = "Test"
In a form I have a field (C) where the control source is IIf(IsNull(A),B,A)
What I'd like to do is when a new value is selected in the combo box it writes that value to the A field and then the field recalculates
The form field should be showing "Test" now based on the above logic.
The field is a combo box which has a row source as
SELECT DISTINCT A from Table which gives possible choices of
- Detail1
- Detail2
- Detail3
If I choose Detail2 I currently get the error "Field is currently based on an expression and cannot be edited".
What I'd like to have happen is that the value I choose be written to field A and then field C would recalculate based on the above logic to then show "Detail2"
Does anyone have any ideas on how this can be done using access settings or VBA?
Thanks
I have 2 fields in a query:
A = [null]
B = "Test"
In a form I have a field (C) where the control source is IIf(IsNull(A),B,A)
What I'd like to do is when a new value is selected in the combo box it writes that value to the A field and then the field recalculates
The form field should be showing "Test" now based on the above logic.
The field is a combo box which has a row source as
SELECT DISTINCT A from Table which gives possible choices of
- Detail1
- Detail2
- Detail3
If I choose Detail2 I currently get the error "Field is currently based on an expression and cannot be edited".
What I'd like to have happen is that the value I choose be written to field A and then field C would recalculate based on the above logic to then show "Detail2"
Does anyone have any ideas on how this can be done using access settings or VBA?
Thanks