Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    Mar 2005
    Location
    Leicestershire, United Kingdom
    Posts
    506
    Thanks
    0
    Thanked 0 Times in 0 Posts

    On Click Of Field (2000)

    We have a telephone number field, when we click on it we wantto be able to take it to the beginning of that field automatically and not where we click in the field. It does have an input mask for numbers.

    Any ideas?
    Best Regards,

    Luke

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: On Click Of Field (2000)

    You can put the insertion point at the beginning if the user tabs into the text box using the On Got Focus event, but not if the user clicks in the text box.

  3. #3
    4 Star Lounger
    Join Date
    Mar 2005
    Location
    Leicestershire, United Kingdom
    Posts
    506
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: On Click Of Field (2000)

    how do i do this?
    Best Regards,

    Luke

  4. #4
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Manassas, Virginia, USA
    Posts
    363
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: On Click Of Field (2000)

    I use the following code to take the cursor to the start of the field when a user clicks in a field that I want to behave in the way you describe: Me.FieldName.SelStart = 0
    Judy Jones, Computer Training Specialist
    Manassas, Virginia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •