D
Dan LJ
I use macro buttons to open and close forms. Most of the
form open, close and return to the previous very smooth,
one closes and the other instantly appears. A few of the
forms are not so smooth. The form appears to change from a
maximize state to a restored state and then opens the
previous forms, making the transition looks jerky. I
looked at the button code (see below) but could not see
any difference as it is automaticly generated by the
command button wizard.
Any thoughts what would make the forms behave in such a
way? Or any refferences on how to improve form transitions?
Thanks for any help
*** Form that closed in a jerky way
Private Sub return_to_misc_updat_Click()
On Error GoTo Err_return_to_misc_updat_Click
DoCmd.Close
Exit_return_to_misc_updat_Click:
Exit Sub
Err_return_to_misc_updat_Click:
msg = Err.Number & " " & Err.Description
MsgBox (msg)
Resume Exit_return_to_misc_updat_Click
End Sub
*** Form that closed correctly
Private Sub return_to_scantron_i_Click()
On Error GoTo Err_return_to_scantron_i_Click
DoCmd.Close
Exit_return_to_scantron_i_Click:
Exit Sub
Err_return_to_scantron_i_Click:
MsgBox Err.Number & " " & Err.Description
Resume Exit_return_to_scantron_i_Click
End Sub
form open, close and return to the previous very smooth,
one closes and the other instantly appears. A few of the
forms are not so smooth. The form appears to change from a
maximize state to a restored state and then opens the
previous forms, making the transition looks jerky. I
looked at the button code (see below) but could not see
any difference as it is automaticly generated by the
command button wizard.
Any thoughts what would make the forms behave in such a
way? Or any refferences on how to improve form transitions?
Thanks for any help
*** Form that closed in a jerky way
Private Sub return_to_misc_updat_Click()
On Error GoTo Err_return_to_misc_updat_Click
DoCmd.Close
Exit_return_to_misc_updat_Click:
Exit Sub
Err_return_to_misc_updat_Click:
msg = Err.Number & " " & Err.Description
MsgBox (msg)
Resume Exit_return_to_misc_updat_Click
End Sub
*** Form that closed correctly
Private Sub return_to_scantron_i_Click()
On Error GoTo Err_return_to_scantron_i_Click
DoCmd.Close
Exit_return_to_scantron_i_Click:
Exit Sub
Err_return_to_scantron_i_Click:
MsgBox Err.Number & " " & Err.Description
Resume Exit_return_to_scantron_i_Click
End Sub