V
vr8ce
I have two text controls that are mutually exclusive, i.e. if text is entered
in the first one, the second one should be disabled, and if text is entered
in the second one, the first one should be disabled. I would like to
accomplish this with as little disruption to the user as possible.
I tried putting code in the LostFocus of the first control (as a test) that
disabled the second control if the value of the first was null. However, if
the user puts text in the first control then tabs out, the focus ends up in
never-never land, because apparently LostFocus is too late in the game for
the focus to know to skip the (now) disabled second control.
If I put code in LostFocus to explicitly set focus to the second or third
control (depending on whether the first is empty), then keys that shouldn't
go to those control do anyway. For example, hitting page down in the first
control, which should go to the next row, now goes to the appropriate control
on this page.
What is a (easy?) way to accomplish this? I'm using Access 2003. Thanks!
in the first one, the second one should be disabled, and if text is entered
in the second one, the first one should be disabled. I would like to
accomplish this with as little disruption to the user as possible.
I tried putting code in the LostFocus of the first control (as a test) that
disabled the second control if the value of the first was null. However, if
the user puts text in the first control then tabs out, the focus ends up in
never-never land, because apparently LostFocus is too late in the game for
the focus to know to skip the (now) disabled second control.
If I put code in LostFocus to explicitly set focus to the second or third
control (depending on whether the first is empty), then keys that shouldn't
go to those control do anyway. For example, hitting page down in the first
control, which should go to the next row, now goes to the appropriate control
on this page.
What is a (easy?) way to accomplish this? I'm using Access 2003. Thanks!