ACC97: Unable to Quit Microsoft AccessID: Q190074
|
When you try to quit Microsoft Access version 97, you find that you are able to close the database, but you are unable to quit Microsoft Access. Instead, Microsoft Access is minimized without generating any errors.
You have code behind a subform control that references a Boolean control
such as a check box on the main form, and are using an If..Then statement
to implicitly test for a value of True, as shown in the following example:
If Me.Parent![CheckBox] Then
MsgBox "true"
End If
This problem can be resolved by modifying the code to explicitly compare
the control on the main form with a value such as True or False. Using the
example from the "Cause" section, the resolution would appear as follows:
If Me.Parent![CheckBox] = True Then
MsgBox "true"
End If
Microsoft has confirmed this to be a problem in Microsoft Access 97
Form: frmMain
----------------
Caption: frmMain
Check box:
Name: Check0
Private Sub Form_Load()
Check0 = False
End Sub
Form: frmSub
----------------------------------
Caption: frmSub
Text box:
Name: Text1
After Update: [Event Procedure]
Private Sub Text1_AfterUpdate()
If Me.Parent!Check0 Then
MsgBox "Checked - Now Try to close Access"
End If
End Sub
Name: frmSub
SourceObject: frmSub
Additional query words: can't minimize unable
Keywords : kbdta
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 16, 1999