T
TESA0_4
Hi,
I have a Form with a Subform. If I use the cross in the top right hand
corner of the form to close it, all is well. If I use a command button with
the following code to close the form a 'white oblong' remains on the screen
in a position that matches where the subform was being displayed.
If I go back to the backup copy of the application from the start of today,
the command button works fine but not now. I cannot identify what change(s) I
have made today that has caused the command button to become partially
ineffective.
Any suggestions would be appreciated. (I'm using Access 2003 in Access2000
format).
Private Sub cmdSaveClose_Click()
On Error GoTo Err_cmdSaveClose_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.Close acForm, "frmHazActPlan"
Exit_cmdSaveClose_Click:
Exit Sub
Err_cmdSaveClose_Click:
MsgBox Err.Description
Resume Exit_cmdSaveClose_Click
End Sub
I have a Form with a Subform. If I use the cross in the top right hand
corner of the form to close it, all is well. If I use a command button with
the following code to close the form a 'white oblong' remains on the screen
in a position that matches where the subform was being displayed.
If I go back to the backup copy of the application from the start of today,
the command button works fine but not now. I cannot identify what change(s) I
have made today that has caused the command button to become partially
ineffective.
Any suggestions would be appreciated. (I'm using Access 2003 in Access2000
format).
Private Sub cmdSaveClose_Click()
On Error GoTo Err_cmdSaveClose_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.Close acForm, "frmHazActPlan"
Exit_cmdSaveClose_Click:
Exit Sub
Err_cmdSaveClose_Click:
MsgBox Err.Description
Resume Exit_cmdSaveClose_Click
End Sub