Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call the OnOpen method

Status
Not open for further replies.

MaggieLeatherman

Programmer
May 9, 2004
59
US
Hi, I need to run the code that is in the OnOpen method of my form whenever I click a Reset Command Button. How do I call the OnOpen method code from a comman OnClick method?

Thanks, Maggie
 
Rather than trying to calling the OnOpen method, I would suggest moving the common code to a separate function, then simply call that code when either opening the form or on the click event of the Reset Command Button.
 
How are ya MaggieLeatherman . . .
Code:
[blue]Call FormOpen(False)[/blue]

Calvin.gif
See Ya! . . . . . .
 
. . . woops . . .
Code:
[blue]Call Form_Open(False)[/blue]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top