The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills. SYMPTOMS
When you use Microsoft Access intrinsic constants in expressions in a
query, on a form or a report, or in the Condition column of a macro, you may receive an error.
When you use the StrConv() function in the Criteria cell of a select query, you receive the following error message: If you use the StrConv() function in the ControlSource property of a control on a report, Microsoft Access prompts you for a parameter value. If you use the StrConv() function in the ControlSource property of a control on a form, the control displays #Name? in Form view. If you use the StrConv() function in the Condition column of a macro, you receive the following error message: Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Solution Provider or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Solution Providers, please see the following page on the World Wide Web: http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.asp CAUSEThe query does not recognize the value of the Visual Basic intrinsic constants that you used in the function. RESOLUTIONTo work around this behavior, use one of the following methods:
Expr1: StrConv([CompanyName],vbProperCase)use: Expr1: StrConv([CompanyName],3) Expr1: UseConstants([CompanyName]) STATUSThis behavior is by design. Intrinsic constants can only be used in Visual Basic for Applications code. MORE INFORMATIONSteps to Reproduce Behavior
StrConv([CompanyName], vbUpperCase) REFERENCESFor more information about a list of numeric values associated with each of the intrinsic constants used in the conversion argument of the StrConv() function, in the Visual Basic Editor, click
Microsoft Visual Basic Help on the Help menu, type "StrConv()() function" in
the Office Assistant or the Answer Wizard, and then click Search to
view the topic. Additional query words: action update delete make table select
Keywords : kberrmsg kbusage AccCon QryOthr KbVBA |
Last Reviewed: July 6, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |