ACC1x: GP Fault When Creating a Dynaset from Form Dynaset

Last reviewed: June 8, 1997
Article ID: Q98672
The information in this article applies to:
  • Microsoft Access version 1.0

SYMPTOMS

When attempting to create a dynaset based on a form's dynaset, you will get a general protection (GP) fault similar to:

   Application Error

   MSACCESS caused a General Protection Fault in module
   MSACCESS.EXE at 00B0:09B5

CAUSE

This functionality is unsupported. Instead of returning an error message explaining this, Microsoft Access causes a GP fault. Microsoft Access does not support creating a dynaset based on a form's dynaset.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Access version 1.0. This problem no longer occurs in Microsoft Access version 1.1.

MORE INFORMATION

In Microsoft Access version 1.0, the following steps will reproduce a GP fault.

In Microsoft Access version 1.1, the following steps will correctly return the following error message, indicating that this functionality is not supported:

   Can't perform operation; it is illegal

Steps to Reproduce Problem

In the following example, the Clone method is used to create a duplicate dynaset based on a form's dynaset. This is incorrect usage of the Clone method.

  1. Open the Categories form in the sample database NWIND.MDB.

  2. Create a new module, with the following Declarations section:

       '*********************************************************
          'Declarations Section of the module.
    
       '*********************************************************
          Option Compare database
          Dim DS as Dynaset, DS2 as Dynaset, F as Form
    
    

  3. From the View menu, choose the Immediate window.

  4. Type the following lines in the Immediate window, pressing ENTER after each line:

          Set F=Forms!Categories![Categories Subform].Form
          Set DS=F.Dynaset.Clone()
          Set DS2=DS.CreateDynaset()
    

The error will occur after the third line.

REFERENCES

For more information, search for "clone," then "Clone Method" using the Microsoft Access Help menu.


Additional query words: gpf createdynaset
Keywords : EvnGpf JetRS kbprg PgmObj
Version : 1.0
Platform : WINDOWS
Hardware : X86
Issue type : kbbug
Resolution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" 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.

Last reviewed: June 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.