FIX: Attempting to Refresh Null TableDef Field Causes GP FaultLast reviewed: October 30, 1997Article ID: Q94773 |
2.00
WINDOWS
kbinterop kbprg kbbuglist
The information in this article applies to: - Microsoft Visual Basic programming system for Windows, version 2.0
SYMPTOMSA general protection (GP) fault occurs when you attempt to refresh a Null Fields collection of a TableDef. Instead, you should receive this error: "Method not applicable to this object." When the Fields collection for a TableDef is not Null, the Refresh method works as expected.
STATUSMicrosoft has confirmed this to be a problem in Microsoft Visual Basic version 2.0 for Windows. This problem was corrected in Microsoft Visual Basic version 3.0 for Windows.
MORE INFORMATIONThe following steps reproduce the problem:
To avoid the problem, make sure the Fields collection is not Null before using the Refresh method. To do this, replace the tDef.Fields.Refresh statement in step 2 above with the following code:
If Not tDef.Fields = Null Then tDef.Fields.Refresh End If |
Additional reference words: 2.00 3.00 GPF buglist2.00 fixlist3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |