ACC97: Private Data Type Doesn't Appear in Auto List Members Box

Last reviewed: June 16, 1997
Article ID: Q170144
The information in this article applies to:
  • Microsoft Access 97

SYMPTOMS

Advanced: Requires expert coding, interoperability, and multiuser skills.

A private, user-defined data type declared in a class module does not appear in the Auto List Members box as expected. However, a private, user-defined data type does appear in the Object Browser when you select the project name from the list of Libraries.

This problem does not occur with a user-defined data type declared in a standard module.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Access 97. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Start Microsoft Access 97 and open any database.

  2. Create a new form not based on any table or query in Design view.

  3. On the Tools Menu, click Options.

  4. In the Options dialog box, select the Modules tab. Make sure that the Auto List Members check box is selected, and then click OK.

  5. On the View menu, click Code.

  6. Type the following code:

          Private Type TestType
    
             strTestType As String
          End Type
    
          Dim x As
    
       Note that TestType does not appear in the Auto List Members box.
    
    

  7. Complete the last line of code so that it reads as follows:

          Dim x as TestType
    

  8. Compile the code. Note that you can compile the code successfully.

REFERENCES

For more information about user-defined data types, search the Help Index for "Type Statement."


Keywords : kbprg PgmOthr
Version : 97
Platform : WINDOWS
Hardware : x86
Issue type : kbbug
Resolution Type : Info_Provided


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 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.