>>I have a form with three pages I use to enter data into a database. Each page is for specific information. Once all the pages are complete the data is entered into the db. I ask the user if they want to enter information for a new sample and if yes I want to reinitialize the form.
>>
>>I want to reinitialize since I have code in the form's INIT procedure to set default values for text boxes and erase data previously entered. Perhaps this isn't the best place for the code.
>>
>>Any advise is welcome.
>
>You can make a custom method like Erick suggested or just add your code to the form's refresh method and call thisform.refresh() whenever...
In my experience, it would only be a matter of time before you needed to run the refresh method and
not reinitialize. I think it is advisable to leave yourself the flexibility to run the code without tying it to any other event...
Erik Moore
Clientelligence