UnLoading a form and loading it again!
Posted on 1998-11-30
I am trying to develop a bus scheduling software.
To generate a schedule user has to enter certain number of buses. But when the user enters buses less than the minimum required, what I am doing is giving an error message and unloading the output form. (Code for generating the schedule is in the Form_load event of the output form). The software then takes the user back to the Data entry form.
But when I try clicking the "run the schedule" command button again, it does not go to the Form_load event of the Output form at all. It just loads the output form with few controls. So I have to kind of go back and run the schedule again and it works then.
Does anyone have any idea as to why it is doing that?
Any suggestions would be greatly appreciated.