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
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