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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello? I nedd a little help!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hey!
Does someone know how to link a form to a commandbutton?
So when you click on a button the new window will open.
Please help!
 
I'd just place in the command buttons click event...


form.show


Where form is the name of the form you would like to load.
Not sure what you mean by wanting to link, but this will load the form you want when you click on the button.

Hope this helps out some.
Mavors
Cincinnati, Ohio
 
JUST ADD ONE MORE LINE BEFORE UR LINE..

LOAD <FORM NAME> Good Luck
Varnit
 
Varnit has a good point. Although the LOAD command isn't necessary, as the SHOW will load it if it isn't already loaded, you get more options by separating the two. If you have a form that will be used a lot, you can load it during program startup and fill any combo's, etc., while the user is shown a splash screen. Then just show and hide the form throughout the program operation. It gives the user faster run time access.
 
If you want your user to not to have access on the previous form just issue:

FormName.show vbModal

The only time he will have access on the previous form is when he closes the form you called.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top