Is there a way to locate the cursor at the beginning of a field automatically
when you click in a field. Right now, the cursor jumps into the middle of
the field and my users do not like that.
I know you can do this if you tab into the field, but my users use the mouse
to move more often.
|
|
0
|
|
|
|
Reply
|
Utf
|
12/18/2007 4:28:01 PM |
|
Flick,
Using the control's OnClick event of example LastName
LastName.SelStart = 0
will place the cursor before the first character.
But... you probably meant to have the LastName "fully selected"... and
ready for over-typing, when clicking in.
LastName.SelStart = 0
LastName.SelLength = Len(LastName)
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."
"Flick Olmsford" <FlickOlmsford@discussions.microsoft.com> wrote in message
news:15DC0FF3-46F4-4E41-97C7-F9D6CB55D0D4@microsoft.com...
> Is there a way to locate the cursor at the beginning of a field
> automatically
> when you click in a field. Right now, the cursor jumps into the middle of
> the field and my users do not like that.
>
> I know you can do this if you tab into the field, but my users use the
> mouse
> to move more often.
>
|
|
0
|
|
|
|
Reply
|
Al
|
12/18/2007 6:15:11 PM
|
|
Flick,
Change my previous code suggested to...
Date1.SelStart = 0
Date1.SelLength = Len(Nz(Date1))
This prevents "Invalid use of null" when clicking into an empty LastName
control.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."
"Flick Olmsford" <FlickOlmsford@discussions.microsoft.com> wrote in message
news:15DC0FF3-46F4-4E41-97C7-F9D6CB55D0D4@microsoft.com...
> Is there a way to locate the cursor at the beginning of a field
> automatically
> when you click in a field. Right now, the cursor jumps into the middle of
> the field and my users do not like that.
>
> I know you can do this if you tab into the field, but my users use the
> mouse
> to move more often.
>
|
|
0
|
|
|
|
Reply
|
Al
|
12/18/2007 6:20:35 PM
|
|
Thanks. I was kind of hoping for one setting though for the entire form but
this will do. I can probably create some code that sets this on the form
opening.
"Al Campagna" wrote:
> Flick,
> Change my previous code suggested to...
> Date1.SelStart = 0
> Date1.SelLength = Len(Nz(Date1))
> This prevents "Invalid use of null" when clicking into an empty LastName
> control.
>
> --
> hth
> Al Campagna
> Microsoft Access MVP
> http://home.comcast.net/~cccsolutions/index.html
>
> "Find a job that you love... and you'll never work a day in your life."
>
>
> "Flick Olmsford" <FlickOlmsford@discussions.microsoft.com> wrote in message
> news:15DC0FF3-46F4-4E41-97C7-F9D6CB55D0D4@microsoft.com...
> > Is there a way to locate the cursor at the beginning of a field
> > automatically
> > when you click in a field. Right now, the cursor jumps into the middle of
> > the field and my users do not like that.
> >
> > I know you can do this if you tab into the field, but my users use the
> > mouse
> > to move more often.
> >
>
>
>
|
|
0
|
|
|
|
Reply
|
Utf
|
12/18/2007 9:51:05 PM
|
|
Flick,
Actually there is a built in method in Access to do just that.
If the Text Control has an associated label, the user can
click the label, and the fields contents will be highlited...
just as if you tabbed into it.
Click the label
|
V
LastName: ___________
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."
"Flick Olmsford" <FlickOlmsford@discussions.microsoft.com> wrote in message
news:D06E29A7-C301-49D9-9944-012ECA88C8E0@microsoft.com...
> Thanks. I was kind of hoping for one setting though for the entire form
> but
> this will do. I can probably create some code that sets this on the form
> opening.
>
>
>
> "Al Campagna" wrote:
>
>> Flick,
>> Change my previous code suggested to...
>> Date1.SelStart = 0
>> Date1.SelLength = Len(Nz(Date1))
>> This prevents "Invalid use of null" when clicking into an empty
>> LastName
>> control.
>>
>> --
>> hth
>> Al Campagna
>> Microsoft Access MVP
>> http://home.comcast.net/~cccsolutions/index.html
>>
>> "Find a job that you love... and you'll never work a day in your
>> life."
>>
>>
>> "Flick Olmsford" <FlickOlmsford@discussions.microsoft.com> wrote in
>> message
>> news:15DC0FF3-46F4-4E41-97C7-F9D6CB55D0D4@microsoft.com...
>> > Is there a way to locate the cursor at the beginning of a field
>> > automatically
>> > when you click in a field. Right now, the cursor jumps into the middle
>> > of
>> > the field and my users do not like that.
>> >
>> > I know you can do this if you tab into the field, but my users use the
>> > mouse
>> > to move more often.
>> >
>>
>>
>>
|
|
0
|
|
|
|
Reply
|
Al
|
12/18/2007 10:54:32 PM
|
|
This is really going to have to be done a control by control basis, I'm
afraid, rather than setting all controls when the form loads.
Just as a side note, doing the
LastName.SelStart = 0
thing in the control's OnClick event is an absolute ***must*** when using
Input Masks! Otherwise, users like yours will click on the control somewhere
other than the beginning of the field, start typing, and get really upset
when they get an error because the entered data didn't meet the mask's
requirement! They then have to go back and re-enter it.
--
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000/2003
Message posted via http://www.accessmonster.com
|
|
0
|
|
|
|
Reply
|
Linq
|
12/19/2007 12:32:09 AM
|
|
Thanks to all of you. You have been a great help.
"Linq Adams via AccessMonster.com" wrote:
> This is really going to have to be done a control by control basis, I'm
> afraid, rather than setting all controls when the form loads.
>
> Just as a side note, doing the
>
> LastName.SelStart = 0
>
> thing in the control's OnClick event is an absolute ***must*** when using
> Input Masks! Otherwise, users like yours will click on the control somewhere
> other than the beginning of the field, start typing, and get really upset
> when they get an error because the entered data didn't meet the mask's
> requirement! They then have to go back and re-enter it.
>
> --
> There's ALWAYS more than one way to skin a cat!
>
> Answers/posts based on Access 2000/2003
>
> Message posted via http://www.accessmonster.com
>
>
|
|
0
|
|
|
|
Reply
|
Utf
|
12/19/2007 3:12:01 PM
|
|
|
6 Replies
106 Views
(page loaded in 0.524 seconds)
Similiar Articles: Lost Properties pop up on right mouse click? - microsoft.public ...Hi, I can no longer right click on a control and bring up its properties. I have to be in design mode and select the field then click the properties ... Want Users Cursor To Always Go To Beginning Of Field - microsoft ...if they are using the mouse to click in a text box and you want to ensure the cursor starts at the beginning, then put this code in the On Click event of the text box ... Simulate a mousebutton click on a textbox field - microsoft.public ...Hi All, I'd like to requery a subform from a button on the mainform, setfocus to the name fieldon the subform and simulate a mousebutton click, whic... crash when right mouse click in table properties - microsoft ...Access 2007 consistently crashes whenever I right-click with the mouse on ANY property field (Form, Report). I can also create the problem by I using the mouse to ... how to scroll to a position in a multiselect list box ...(they right mouse click in the sequence field in the large form, choose a menu item 'Group into Visits') and it takes them in to a new form with the list box showing ... Cursor position - microsoft.public.access.forms> On Mon, 11 Jan 2010 17:01:27 -0500, "Al Campagna" <newsgroups@comcast.net> > wrote: > >> When you Tab into the field, or when you mouse click >>into the field. Scrolling in Memo Field - microsoft.public.access.forms ...If I use the mouse scroll while the curser is in the memo field the next record s... ... and the text in the memo field will scroll, but click in any other field ... How do I setup a date field property that allows only Saturdays ...Lost Properties pop up on right mouse click? - microsoft.public ..... field then click the properties ... only when you're in form view? If the latter, you've probably ... Programmatically click mouse - microsoft.public.accessSubform Field Vertical Scroll - microsoft.public.access.forms ... Programmatically click mouse - microsoft.public.access Subform Field Vertical Scroll - microsoft.public ... move fields independently - microsoft.public.access.reports ...I'm trying to create a report with several fields...when I create the report ... Frets55, If this is Access 2007, click the group and then right mouse click and ... Clear Text On Input Field On Click | ErumMunir.com“onFocus” basically means “when you click this with your mouse” or ‘bring this field into focus’ as it were… “clearMe(this)” is the defined action for ... Right-mouse click menu for rich text fieldsHello, One of the issues that we have with our current Sharepoint 2003 implementation is that there is no right-mouse click menu (for copy and paste) for ... how should i detect mouse click on JTextField - Java ForumFor detecting clicks inside a JTextField instance, you would simply add a mouse-listener or mouse-adapter to your instance. This might help:-----package org ... mouse definition of mouse in the Free Online Encyclopedia.Field mouse is a name applied to various wild-living mice in different parts ... pointer over an on-screen item), click (to press and release a mouse button), double-click to ... Mouse - Wikipedia, the free encyclopediaA mouse (plural: mice) is a small mammal belonging to the order of rodents ... Subgenus Mus: Little Indian Field Mouse · Ryukyu Mouse · Fawn-colored Mouse (M ... 7/23/2012 3:08:25 AM
|