Valatation Rule to only allow Uppercase X

Posted on 2004-11-05
Last Modified: 2006-11-17

This should be an easy question for everyone but me.  I want to set a valadation rule to only allow an Uppercase X.  If I set it to just "X", it allows uppercase and lower case.  I tried the expression builder but I had bad syntax... so something was wrong!

Question by:jdolan2587
    LVL 16

    Accepted Solution

    Try in the after update event:

    Me.txtBox = Ucase(Me.txtBox)

    If you just want show uppercase set the Format property of the field to >
    LVL 9

    Expert Comment

    Bit of a weird one this :-)


    where txtBox is the name of the field you are validating.

    =chr(88) will accept upper or lower which does not make sense!

    LVL 9

    Assisted Solution

    Probably the most user-friendly way though is to use just X in validation and Nestorio's  Me.txtBox = Ucase(Me.txtBox) to put it right if they get the case wrong



    Author Comment

    Thanks Works Like a Charm!
    LVL 16

    Expert Comment

    Glad to have helped.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    The first two articles in this short series — Using a Criteria Form to Filter Records ( and Building a Custom Filter ( — discuss in some detail how a form can be…
    Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
    Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
    With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now