You're welcome.
But see some additional comments in-line below:
Rob
NWO said:
Excellent informed answer. I'm just gpiong to leave as is then because the
combo box works as designed at least to select the desired record. Just have
to train user group to be aware not to use the scroll feature of the
mouse.
The scroll feature is useful if you are using a continuous form, but it can
be a real trap if you're displaying records in a single form - the user can
inadvertantly change a record without being aware of it, and then change
data for the wrong record. For this reason, using Stephen Lebans mouseoff
system is highly recommended!!! I've seen your other post where you say you
can't use it - that's a pity, it's worth its weight in gold.
Even if the user does use the scroll feature, the name field directly under
the combo box will serve as verification that the user is on the intended
name.
Having the name field directly under the combo-box may serve as
verification, but I wouldn't rely on it - users will focus on what they're
doing, not on every detail on-screen. I'm assuming that the combo-box is
unbound, and in the form header. You don't say whether you're displaying
records in single or continuous mode. If it's continuous mode, then it
should be obvious to the user which record they are working on (ie. which is
the selected record); if they perform any action or click in another row,
the selected record will not be the one displayed in the combo-box, but they
will know which record it is. However, if you're displaying single records,
then any click or action in the detail section of the form will change the
selected record without the user being aware of it, unless they happen to
notice that the name and the combo-box fields are now different - and, as I
implied earlier, that may not occur. If that's your situation, and you
can't disable the scrol wheel, then you could have a problem. Here's a
suggestion which may help in this situation:
Add a label (or an unbound textbox) to the form header (I'd put it
immediately below the combo-box), set it to display a suitable warning
message (eg. "The active record is NOT the one selected above"), and set its
visual properties to make it obvious (eg. red text, bold, ...). In the
form's Current event, set the new control to be visible if the selected
record does not match the selection in the combo-box. For example, if the
field you are using to move to the record selected in the combo-box is
StaffID, in the Current event you would add a line such as:
lblWarning.visible = Not(Me.StaffID = cboxMySelectComboName)
This will display the warning message when then user changes to a different
record from the one initially selected in the combo-box. You could use this
even if you're displaying in continuous mode, but there it's less important
(as discussed above).
Again, HTH,
Rob