ACC1x: Domain Param. of Domain Function Cannot Be SQL Exp.

Last reviewed: June 6, 1997
Article ID: Q101088
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1

SYMPTOMS

If you try to use an SQL SELECT statement as the domain parameter of a domain function, error 3078 is displayed:

   Couldn't find input table or query <SQL string>

where <SQL string> is the SQL string you have entered, such as the following:

   Couldn't find input table or query "Select * From Table1 Where ID =
   1"

RESOLUTION

Microsoft Access "Language Reference," versions 1.0 and 1.1, and Microsoft Access Help version 1.0 incorrectly suggest that the domain parameter of a domain function (for example, the DLookup(), DFirst(), DLast(), DSum(), DMax(), DMin(), and DCount() functions) can be an SQL expression.

The following is the incorrect description of the domain parameter:

   String expression identifying the records that constitute the
   domain. It can be a table name, a query name, or an SQL
   expression that returns data.

The correct wording is provided in Microsoft Access Help version 1.1. The following is the correct description of the domain parameter:

   String expression identifying the records that constitute the
   domain. It can be a table name or a query name.


Additional query words: domain parameter
Keywords : ExrOthr kbprg kbusage
Version : 1.0 1.1
Platform : WINDOWS
Hardware : X86
Issue type : kbdocerr


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