The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills.
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 an expression in the Field cell of a query, or in the ControlSource property of a control on a report, Microsoft Access prompts you for a parameter value. For example, if you type Expr1: StrConv([CompanyName], vbUpperCase) in the Field cell of a query, and then run it, Microsoft Access prompts you to enter a parameter value for "vbUpperCase." 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: This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to your version of the "Building Applications with Microsoft Access" manual. CAUSEThe query does not recognize the value of the Visual Basic intrinsic constants you used in the function. RESOLUTIONTo work around this behavior, use one of the following methods:
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) StrConv([CompanyName], vbUpperCase) REFERENCES
For more information about Microsoft Access intrinsic constants, search the
Help Index for "constants, intrinsic."
Q110391 ACC: Sample Function to Capitalize Words and Phrases Additional query words: action update delete make table select
Keywords : kberrmsg kbusage QryOthr |
Last Reviewed: September 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |