How can I get one field in a form to be visible and available for entry only when another field (which is also from another table) has been chosen with a certain value? Thanks.
How can I get one field in a form to be visible and available for entry only when another field (which is also from another table) has been chosen with a certain value? Thanks.
Should not be doing data entry to fields of multiple tables in one form, at least that would be unusual situation.
However, use control AfterUpdate event to set other control enabled/disabled.
Me.control2.Enabled = Me.control1 = "this specific value"
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Thanks. How would I get one field value to trigger the automatic selection of another field in the same form? Thanks again.
If Me.someField = someValue Then Me.OtherControl.SetFocus
unless by selection you mean something else.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.
I wasn't clear with my question. Each field is a combobox on my form. Where one value is chosen in one combobox, I would like it to automatically choose a value in another combobox on the same record.
Well, that's not what you said in OP.
Why? What value do you want to set in combobox?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
If Me.someField = someValue Then Me.OtherControl = anotherValue
Not sure I see the sense in populating combos this way - they might as well be textboxes?
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.