The simple idea of moving from control to control is driving me nuts. I have 3 fields:
Start Time
Stop Time
Duration
Here are the rules. We come to the start time field:
1. When we leave if the field is blank then skip Stop and prompt for duration.
2. When we leave if the field is not blank then go to the stop time field for input.
Placing some type of setfocus statement in the AfterUpdate of Start time works only if the user updates the field. If the field is empty (default) then tab leaves the field unchanged and we go to stop which is wrong (default tab order). AfterUpdate does not even execute.
Placing a setfocus in the Exit event of start time doesn't seem to work - and there also seems to be an issue of the start Exit event executing twice. The setFocus in the exit event triggers the exit event for the same control a 2nd time.
Oh boy, it sure seems messy.
Start Time
Stop Time
Duration
Here are the rules. We come to the start time field:
1. When we leave if the field is blank then skip Stop and prompt for duration.
2. When we leave if the field is not blank then go to the stop time field for input.
Placing some type of setfocus statement in the AfterUpdate of Start time works only if the user updates the field. If the field is empty (default) then tab leaves the field unchanged and we go to stop which is wrong (default tab order). AfterUpdate does not even execute.
Placing a setfocus in the Exit event of start time doesn't seem to work - and there also seems to be an issue of the start Exit event executing twice. The setFocus in the exit event triggers the exit event for the same control a 2nd time.
Oh boy, it sure seems messy.