Results 1 to 5 of 5
  1. #1
    vickimurray is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2012
    Location
    Oklahoma City, OK
    Posts
    22

    Table--field--format question

    I am creating a new Text field in a table. In the Field Properties I know that "> @" in the format will force all alpha characters to be saved in upper case. How can I force the format to be Proper (as a name with first letter capital and following letters lowercase)??

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I am pretty sure that will require VBA.
    See: http://www.utteraccess.com/forum/For...-t1578532.html

  3. #3
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,841
    You actually just need the ">" but you can't force proper case in the format property - you need to use the StrConv function in code

    http://www.techonthenet.com/access/f...ng/strconv.php

    With regards tables, users should not be looking at them directly anyway, So little point in using the format property there - better to use a bit of code to use StrConv to convert it after user input and before saving the record since it can be disconcerting to a user going to edit 'Abc' and it suddenly changing to 'ABC' when they click on the control

  4. #4
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    you don't need to put the @ to get them upper case. Take a look here:

    http://www.quepublishing.com/article...43872&seqNum=7

    it may be something like:

    Format("VBA", "><<<<<<<<")

    I haven't tested it but looking at that I don't see why It wouldn't work.

  5. #5
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,368
    Consider an input mask. MS has good info with examples. From what I read on the subject recently, they can be used to force Proper Case. As a user, I find them too finicky for input, so I don't develop with them. I'd rather use expressions in a control to display as needed if it's any more involved than storing a value that's been converted with something like Ucase.

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

Similar Threads

  1. Replies: 2
    Last Post: 04-19-2014, 02:42 AM
  2. Replies: 4
    Last Post: 03-12-2013, 06:49 PM
  3. switchboard format question
    By budchevy in forum Access
    Replies: 1
    Last Post: 03-09-2012, 05:41 PM
  4. Simple Format Question
    By evanesce in forum Access
    Replies: 2
    Last Post: 01-19-2012, 08:23 AM
  5. Replies: 11
    Last Post: 11-09-2011, 11:25 AM

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