Results 1 to 6 of 6
  1. #1
    darrellx is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2006
    Posts
    7

    Field Rules

    Is it possible to set up a rule in a field so that it will only accept or auto correct all words to display in capital letters?



    If so, how do I do this.

    Thanks

    darrellx

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    look up "mask" in access help.

    example field mask that req's uppercase:

    Code:
    >LLLLLLLLLLLLLLLLLLLLLLLLLLLL

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    you can also, in a query or form or report use

    UCASE([FieldName])

    the UCASE function converts all alpha characters to upper case.

  4. #4
    darrellx is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2006
    Posts
    7
    Dear Ajetrumpet:

    I input the code for the input mask like you have it >LLLLLLLLLLLLLLLLLLLLLLLL and when I try to save it, I get a message:

    "The value you entered isn't appropriate for the input mask '>LLLLLLLLLLLLLLLLLLLLL;0; specified for this field"

    What am I doing wrong?

    Thanks

    Darrellx

  5. #5
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by darrellx View Post
    Dear Ajetrumpet:

    I input the code for the input mask like you have it >LLLLLLLLLLLLLLLLLLLLLLLL and when I try to save it, I get a message:

    "The value you entered isn't appropriate for the input mask '>LLLLLLLLLLLLLLLLLLLLL;0; specified for this field"

    What am I doing wrong?

    Thanks

    Darrellx
    did you look at the help article? "L" is the mask for a MANDATORY character. Hence, the value has to be that amount of "L"'s long or it'll error. If you can't figure the mask out, try the other suggestion and change the value entered to UCASE() via code when a new record button is clicked.

  6. #6
    darrellx is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2006
    Posts
    7
    Figured it out. Thanks ajetrumpet

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Referential integrity rules
    By mhart in forum Database Design
    Replies: 2
    Last Post: 07-28-2011, 04:43 PM
  2. Question about Validation Rules
    By WilsonsW in forum Access
    Replies: 1
    Last Post: 04-18-2011, 05:06 PM
  3. Updateable query rules
    By gg80 in forum Queries
    Replies: 7
    Last Post: 01-05-2011, 11:50 PM
  4. Validation Rules
    By esglover in forum Database Design
    Replies: 1
    Last Post: 07-23-2010, 08:02 PM
  5. Validation rules question
    By cps6568 in forum Access
    Replies: 3
    Last Post: 01-12-2010, 02:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums