"Selection Too Large" Message Using SQLRetrieve Function

Last reviewed: September 12, 1996
Article ID: Q128407
The information in this article applies to:
  • Microsoft Excel for Windows, version 5.0c

SYMPTOMS

When you retrieve a large result set using the SQLRetrieve macro function in the version of Microsoft Excel listed above, you may receive the following alert message:

   Selection too large. Continue without undo?

If you choose Yes, the SQLRetrieve function will continue to retrieve the result set to the specified destination.

CAUSE

The SQLRetrieve function turns off the suppression of alert messages; therefore, you will receive the alert message stated above.

STATUS

Microsoft has confirmed this to be a problem in the version of Microsoft Excel listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The SQLRetrieve macro function is contained in the XLODBC.XLA add-in (ODBC Add-In on the Macintosh). Before you use the function, you must establish a reference to the add-in using the References command from the Tools menu. For more information, the syntax for the SQLRetrieve function is shown below:

SQLRetrieve(ConnectionNum, DestinationRef, MaxColumns, MaxRows, _

     ColNamesLogical, RowNumsLogical, NamedRngLogical, FetchFirstLogical)

REFERENCES

For more information on the References command:

  • Search for "References command (Tools menu)" using the Help menu.
  • See "Calling Procedures in Another Workbook," in the Visual Basic "User's Guide."

For more information on the SQLRetrieve macro function, choose the Search button in Visual Basic Help, and type:

   SQLRetrieve


KBCategory: kbprb
KBSubcategory: xlnt

Additional reference words: 5.00c



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: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.