• Capitalizing Case in Validation Rule in Table

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Capitalizing Case in Validation Rule in Table

    Author
    Topic
    #460844

    Is it possible to add the following expression in the Validation Rule in a table?
    =StrConv(FirstName, vbProperCase)

    Thanks.
    Armstrong

    Viewing 0 reply threads
    Author
    Replies
    • #1166844

      That won’t work, for the expression in the Validation Rule must evaluate to True or False. Your expression returns a string.

      If you want to convert a field to proper case, you must do so in the After Update event of the text box bound to the field on the data entry form, or in the Before Update event of the form as a whole.

      • #1166851

        That won’t work, for the expression in the Validation Rule must evaluate to True or False. Your expression returns a string.

        If you want to convert a field to proper case, you must do so in the After Update event of the text box bound to the field on the data entry form, or in the Before Update event of the form as a whole.

        Hi Hans,
        Thanks for your suggestion. However, your solution requires a form, which I wish to avoid if possible. That’s why I ask whether the capitalization can be done thru the validation rule. Apparently, it’s impossible.
        Armstrong

        • #1166852

          You can’t do such things in a table or query. But that’s not a problem, since end users should never work directly with tables or queries, only with forms and reports.

          • #1166901

            You can’t do such things in a table or query. But that’s not a problem, since end users should never work directly with tables or queries, only with forms and reports.

            Thanks for your help.
            Armstrong

    Viewing 0 reply threads
    Reply To: Capitalizing Case in Validation Rule in Table

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: