PRB: You Have Multiple Related Tables. Adding Records Is...

Last reviewed: March 17, 1997
Article ID: Q118575
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.6
  • Microsoft FoxPro for MS-DOS, versions 2.6
  • Microsoft FoxPro for Macintosh, version 2.6a

SYMPTOMS

If you use the Screen Wizard to create a screen based on two or more related tables, the following WAIT window message will be displayed when you run the screen:

   You have multiple related tables. Adding records is not allowed.

In addition, the Add button in the control box will be disabled.

CAUSE

A screen created by the Screen Wizard automatically checks for multiple and related tables in the Setup code of the screen.

RESOLUTION

By modifying the following command lines in the Setup code of the screen created by the Screen Wizard, you can prevent the message from displaying and also enable the Add push button in the control box:

  1. Change

          m.isadding = .F.
    

    to:

          m.isadding = .T.     && change to .T. (true)
    
    

  2. Change (this is the second occurrence of the m.is2table variable in the Setup code)

          m.is2table = .T.
    

    to:

          m.is2table = .F.     && change to .F. (false)
    
    

  3. Comment out these lines as shown:

          * WAIT WINDOW C_MULTITABLE TIMEOUT 1
    

          * SET SKIP TO  && The SET SKIP TO command exists only if the
    
          *                 relationship is a one-to-many relationship.
    
    
NOTE: Remember that you must regenerate the screen (.SPR) file to see the results of this modification to the Setup code.


Keywords : FoxDos FoxMac FoxWin FxtoolWizscreen kbprg kbtool kbprb
Version : 2.6 2.6a
Platform : MACINTOSH MS-DOS WINDOWS
Issue type : kbprb
Resolution Type : kbcode


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