The information in this article applies to:
SYMPTOMSA form cannot be closed or unloaded. CAUSEIf data in a control bound to a Microsoft RemoteData Control is changed and if the RDC's underlying resultset is non-updateable, then attempts to close the form will fail silently. RESOLUTION
One way to avoid this problem is to set the Enabled property of all
controls bound to an RDC to False. If edits are desired, then a command
button to enable the controls can be added to the form. The controls would
be disabled when the edit is committed or canceled.
Also add the following procedure to a standard module:
The effect of this code is to cause any changes to data to be ignored when
the form is being closed (rdActionUnload). It is assumed that this is the
desired behavior because the resultset is non-updateable. There are two
pieces of this code worth noting. If the RDC itself is not bound to data,
then it is "non-updateable" with respect to the behavior described in this
article. Also, error 438, "object does not support this property or
method", will occur for any controls that do not support a DataChanged
property. Because this code checks every control on the form, this error is
expected for controls such as command buttons.If this problem is being encountered because the RDC's LockType property is set to rdConcurReadOnly, then there is a simpler workaround than the above. Choose another value for the LockType property, and add the following code to the RDC's Validate event:
This problem can also be avoided by using the Microsoft ADO Data Control.
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONSteps to Reproduce Behavior
Additional query words:
Keywords : kbCtrl kbVBp500 kbVBp600 kbGrpVBDB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |