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

pageframe focus

Status
Not open for further replies.

fishman13

Programmer
Jul 8, 2002
73
US
I have a form with a pageframe (chargeopt) and some corresponding pages in it (name = visit). On the main form I have a command button that when clicked executes the following line

thisform.chargeopt.visit.setfocus()
thisform.refresh()

If I leave the Tabs property set to True for the pageframe, the command buttons jumps to the visit page. However if I have the Tabs property set to False the page does not change.

By setting the Tabs to False does it ignore teh tabs name and if so how can I make the command button change the page.

Thanks
 
Thisfor.pageframe1.activepage = 2 &&Or whatever the page number is

Slighthaze = NULL
 
thisform.pageframe1.activepage = 2 && Or whatever the page number is

Reposting because of the spelling error...also when i read your code up above is "chargeopt" the name of your pageframe? If so then something like:

thisform.chargeopt.activepage = 4

Slighthaze = NULL
 
fishman13,

As addition to slighthaze, try this:

With thisform
.chargeopt.ActivePage = .chargeopt.visit.PageOrder
.chargeopt.visit.setfocus()
.refresh()
EndWith


-- AirCon --
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top