Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Enter control

samoteksamotek Member Posts: 9

Enter button

In my programme the focus stops at the control "cartons".
Here the user must fill in the number of the cartons.
However the customer may skip the control by pressing the
"Enter" button .I want to avoid that.Is there any way to
forbid the user pressing the enter button before he has
filled in the control ?

Comments

  • micks_guptamicks_gupta Member Posts: 8
    :
    : Enter button
    :
    : In my programme the focus stops at the control "cartons".
    : Here the user must fill in the number of the cartons.
    : However the customer may skip the control by pressing the
    : "Enter" button .I want to avoid that.Is there any way to
    : forbid the user pressing the enter button before he has
    : filled in the control ?
    :

    i think ur motive is not to allow user to proceed until he has filled in number of cartons..
    that can be done..
    in cartons control lostfocus event write the msgbox command with appropriate message and make sure to move focus back to cartons control. This way user will not be allowed to proceed.

    there is easier way also as your cartons control must be text box so in properties window,goto validation rule and type in the condition for non null this will again not allow user to proceed
    make here Len([cartons])>0 and in msg type in the msg u want to display


Sign In or Register to comment.