Enter Control

The Enter event occurs before a control actually receives the focus from another control on the same form. The Enter event applies to text boxes, combo and list boxes, option buttons, check boxes, option groups, command buttons, toggle buttons, bound and unbound object frames, and subform and subreport controls. You can use the Enter event to display a message directing the user to first fill in another control on the form.

For example, when a user attempts to make a selection from the combo box controls located in the Room Information and Project Information sections of the Asset Management sample form when he or she hasn't yet selected a Site ID from the Site ID combo box, the following Enter event procedures may be triggered: cboRooms_Enter, cboRoomType_Enter, cboOS_Enter, and cboProject_Enter.

0 0

Post a comment