Microsoft KB Archive/97002

{|
 * width="100%"|

PRA: GPF Referencing Form Dynaset with Form Variables
'Article ID: Q97002

Creation Date: 04-APR-1993

Revision Date: 19-SEP-1996' The information in this article applies to:


 * Microsoft Access version 1.0

SYMPTOMS

Form dynaset references do not always work properly when using form variables. If you reference a form dynaset with variables, you may receive a general protection (GP) fault.

RESOLUTION

Always refer to a form dynaset with explicit references through the form. The first code fragment below shows how to reference a form dynaset safely, and the second code fragment shows what most likely will cause the problem:

Safe

Forms!TestForm.Dynaset!Col1=&quot;MyVar&quot; May Cause Problems

Dim MyForm As Form Set MyForm = Form!TestForm MyForm.Dynaset!Col1 = &quot;MyVar&quot; STATUS

Microsoft has confirmed this to be a problem in Microsoft Access version 1.0. This problem was corrected in Microsoft Access version 1.1.
 * }

-

"THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY." '' ©1997 Microsoft Corporation. All rights reserved. Legal Notices.

''

Additional reference words: 1.00

KBCategory: kbprg

KBSubcategory: PgmOthr