ACC2: User() Function Not Supported in MS Access Version 2.0

Last reviewed: June 8, 1997
Article ID: Q119994
The information in this article applies to:
  • Microsoft Access version 2.0

SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

Both the Microsoft Access version 2.0 "Language Reference" manual and the online Help system state the following:

   Microsoft Access version 2.0 supports the User function for backward
   compatibility. However, it is recommended that you use the CurrentUser
   function.

This information is incorrect.

RESOLUTION

The User() function is not supported in Microsoft Access version 2.0. If you compile a module containing the User() function, you will receive the following error message:

   Expected: expression

Use the CurrentUser() function in Microsoft Access version 2.0 instead of the User() function.

REFERENCES

Microsoft Access "Language Reference," version 2.0, page 130

For more information about the CurrentUser() function, search for "CurrentUser," and then "CurrentUser Function" using the Microsoft Access Help menu.


Keywords : kbprg PgmOthr
Version : 2.0
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 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.