DB.SQL.QUERY Requires Destination Number in Excel

Last reviewed: November 2, 1994
Article ID: Q70745

SUMMARY

When using the DB.SQL.QUERY function with a TYPE of three, the argument DESTINATION must be specified.

The query will also fail if the second argument, QUERY, is not enclosed in double quotation marks (").

MORE INFORMATION

When you specify a filename that contains the query you are trying to pass to Q+E, you must specify a destination number for the extracted records. If no destination number is selected, the result of the query will not appear on your active sheet.

Notes

  1. The function DB.SQL.QUERY() is provided by the add-in macro QE.XLA. You must have QE.XLA open to use this function.

  2. The following example assumes that the query file QUERY1.QEF contains a valid Q+E query.

  3. If QUERY1.QEF is not in the current directory, you will need to add the complete path to it. For example

          c:\excel\qe\query1.qef
    

The following example will execute the query saved in the file QUERY1.QEF and extract the results to SHEET1:

   A1: =INITIATE("qe","system")
   A2: =ACTIVATE("sheet1")
   A3: =DB.SQL.QUERY(3,"query1.qef",1,,false)
   A4: =RETURN()

REFERENCES

"Q+E for Microsoft Excel User's Guide." Version 3.00, page 71.


KBCategory: kbother
KBSubcategory:

Additional reference words: noupd


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: November 2, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.