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

Displaying forms in a formset

Status
Not open for further replies.

LenaS

Technical User
Nov 28, 2000
98
US
I have a formset containing 2 forms. On form1 I have a cmd button click with the code:

thisformset.form2.visible=.T.
thisformset.form2.show

When I run the form, I must exit and run a second time before the cmd button will work.

Any clues why this happens?
 
thisformset.forms(2).visible=.T.
thisformset.forms(2).show
Attitude is Everything
 
LenaS

You may want to set both your forms to always-on-top.
And ideally your code is correct.
Code:
Thisformset.form2.visible = .t.
And you don't need the "thisformset.form2.show" since at the above line it should show itself.

 
Always-on-top doesn't achieve the desired result. I still don't know to how to solve this.
 
LenaS

Have you tried putting a "SET STEP ON" in the click event of the button, to see if the code actually "kicks" in?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top