Page Break Problems

wjoc1

Registered User.
Local time
Today, 07:16
Joined
Jul 25, 2002
Messages
117
Hi,

I have a form which has three distinct sections on it. I have used the page break control to break the form into a number of sections.

When I view the form and use the PG UP and PG DOWN buttons the form jumps between sections. However if I place a subform into these sections the page breaks refuse to function and I can't move around the page using the PG UP and PG DOWN keys.

Is it something to do with the fact that the subform now recieves the focus immediately. How do I fix this?

Thanks,
LIam
 
Rather than split it into 3 pages, why not utilise the tab control to give a more accurate representation of where you are on the form, placing each 'section' into it's own tab control?
 
This is going to sound a little sad but I can't change the colour of the tab control and that's why I'm not using it in this instance!

I figured out a bit of a botch of a solution anyways. My problem was with the subform recieving focus so before I invoke the GoToPage command I simply use SetFocus to change the focus to an invisible empty control on the form.

I'm able to use the page break then.

Thanks,
Liam
 
No problem. A cheat around the tab colour problem is to add a filled colour box to the tab control and stick your controls over that. The tabs themselves dont change, just the contents.
 

Users who are viewing this thread

Back
Top Bottom