M
mrl
I am using unbound controls (combo boxes) on a form to enable the user to
establish filtering criteria for the records to be displayed. I have macros
doing validation checks on the values entered in these controls before
applying the filters. If the value entered violates the validation criteria,
I want to advise the user of the invalid entry via msgbox, delete the invalid
entry and leave the cursor in the same (now blank) control. "Limit to List"
property set to "No" as the user needs to be able to both select from list
options or key other values. Several different validations (up to 8) need to
be performed, so I use macro/conditions instead of Validation Rule/Text.
I've tried macros with CancelEvent, SendKey {Del} in the BeforeUpdate event
or CancelEvent, SetValue = Null in the AfterUpdate event. Neither get the
exact result for both list choices and keyed entry. Any suggestions?
establish filtering criteria for the records to be displayed. I have macros
doing validation checks on the values entered in these controls before
applying the filters. If the value entered violates the validation criteria,
I want to advise the user of the invalid entry via msgbox, delete the invalid
entry and leave the cursor in the same (now blank) control. "Limit to List"
property set to "No" as the user needs to be able to both select from list
options or key other values. Several different validations (up to 8) need to
be performed, so I use macro/conditions instead of Validation Rule/Text.
I've tried macros with CancelEvent, SendKey {Del} in the BeforeUpdate event
or CancelEvent, SetValue = Null in the AfterUpdate event. Neither get the
exact result for both list choices and keyed entry. Any suggestions?