Pg Down button

G

grep

I have a form with two buttons: Pg1Btn and Pg2Btn. There's a page break
on the form above the position I want the break.

The code in the buttons is as follows (although I'm not entirely sure it
matters):

Private Sub Pg1Btn_Click()
GoToPage 1
Last.SetFocus
Pg1Btn.Enabled = False
Pg2Btn.Enabled = True
End Sub

Private Sub Pg2Btn_Click()
GoToPage 2
Pg1Btn.Enabled = True
Pg2Btn.Enabled = False
End Sub

Now, after loading the form from the form list, if I press the Pg2
button, it does not go all the way down to the page break. It goes a few
fields down and stops. However if I then hit the Design button, and then
the Run button, the form works properly.

I don't understand why it would make a difference. Any suggestions?

grep
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top