Results 1 to 3 of 3
  1. #1
    path479 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2016
    Posts
    6

    Cursor position on text field where there is an input mask "999999"

    Is there anyway to control the cursor position on text field with an input mask of "999999"?



    We have a text field for a 6 digits numeric id. We try to use an input mask of "999999" in the form to ensure only numbers are entered. However upon entering into the field, the cursor is positioned to the right (i.e. on the 6th position). Is there anyway to make it so that the cursor in positioned to the left (i.e. on the 1st position)?

  2. #2
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Me.YourTextField.SelStart = 0 should do.

  3. #3
    path479 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2016
    Posts
    6
    Thank you so much! It works exactly how I need it to be.

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

Similar Threads

  1. "Y" position of a text box control on a continuous form
    By GraeagleBill in forum Programming
    Replies: 20
    Last Post: 02-18-2019, 06:07 PM
  2. Replies: 2
    Last Post: 02-27-2015, 10:03 PM
  3. Replies: 3
    Last Post: 04-22-2013, 06:08 AM
  4. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  5. Replies: 1
    Last Post: 10-19-2009, 02:37 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