Results 1 to 5 of 5
  1. #1
    MarkV is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    27

    Cursor to left and all Caps in Code Field


    I have a table with CODE number as text. (1234-11-3456). I also have this field in a subform. How do I get the field to start at left, and also make all CAPS. Also where do I do the input mask. In the Table or the Form where it is a subform? Any help will be great...

    Best Regards
    Mark

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,960
    You can set the input mask property in table but this will not alter already existing textbox on form. Always make sure control properties are set as desired on form. I don't bother with setting properties in table.

    Why is CAPS an issue - I don't see any alpha in that example data. Conversion to CAPS can be part of the Input Mask. http://office.microsoft.com/en-001/a...005187550.aspx

    What do you mean by 'start at left' - you want cursor to position in front of existing data when control gets focus? This requires code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    MarkV is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    27
    Thank you so much. That was a mistake on my part. I showed the code number only. I also have a field that looks like this (67K4-00-M01U)

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,960
    Example code to set cursor position:

    Private Sub cbxLabNum_Enter()
    Me.cbxLabNum.SelStart = 0
    End Sub
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    MarkV is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    27
    THANK YOU SO MUCH. I will try that now. I am determind to get this program!

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

Similar Threads

  1. Replies: 6
    Last Post: 06-11-2014, 01:00 AM
  2. Replies: 2
    Last Post: 02-08-2014, 07:10 PM
  3. Replies: 6
    Last Post: 12-05-2013, 09:55 AM
  4. Bold Field by Cursor Position
    By Rawb in forum Forms
    Replies: 4
    Last Post: 02-08-2011, 08:03 AM
  5. Replies: 0
    Last Post: 03-26-2007, 12:24 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