Re: Force users to use the enter key

From: Peter Castlehouse (pcastlehouse_at_nospam.com)
Date: 11/23/04


Date: Tue, 23 Nov 2004 20:47:35 +1100

Hi all,

I just worked it out! d'oh

In any field but the one I am leaving, I can add this to the 'On MouseDown'
event

msgbox "don't use the mouse!"
me.field_that_person_has_clicked_on.setfocus

cheers anyway all
DubboPete

"Peter Castlehouse" <pcastlehouse@nospam.com> wrote in message
news:eeDod.416$2j4.4755@nnrp1.ozemail.com.au...
> Hello all,
>
> Hope your day has been or will be as good as mine has been so far!
>
> Is this one possible?
>
> I am trying to trap if a user is swapping between the keyboard and the
> mouse when completing a data entry form, and if they are (to navigate to
> the next field) encourage them to use the keyboard, much the same as they
> would when word processing.
>
> Example : includes fields [firstname] and [surname]
>
> User enters First name in [firstname]
>
> (then selects to navigate to [surname] using the mouse, instead of
> pressing enter...
> which obviously entails hand leaving the keyboard, locating the mouse,
> finding the mouse
> pointer on-screen, then clicking the [surname] field! PHEW! )
>
> Msgbox "This is your friendly programmer here. Press enter, don't use the
> mouse ya goose!", vbexclamation
>
> I would of course come up with a more friendly message than the one above,
> and I hope you get my drift.
>
> TIA
>
> DubboPete
> basking in 27ºC spring - (SIA - sorry in advance!)
>



Relevant Pages

  • Re: DuoDisk - Three Questions
    ... the case, and then lift up. ... using Tylex mildew stain remover (which has bleach), ... leaving it in a well-chloronated swimming pool for a week. ... my monitor, disk drives, and keyboard in order to get a matching color ...
    (comp.sys.apple2)
  • Re: CheckBox Possibilities
    ... The following code works whether the keyboard or the mouse is used in both ... MsgBox "Unchecked" ... When I write code for macro to see if user checked "CheckBox" for example: ... Isn't it possible to write code the way it will work also when for marking ...
    (microsoft.public.word.vba.general)
  • Re: Revealed Writing
    ... > leaving us all with a choice about whether or not we read it. ... I don't hear all the keyboard ... Sitting there without it, the tapping all around me sounded ...
    (sci.med.transcription)
  • Re: AC Cord
    ... put finger to keyboard and composed: ... >leaving it completely in two pieces. ... The dog or the cord? ...
    (sci.electronics.repair)
  • Re: Using KeyAscii and MSForms.ReturnInteger
    ... keyboard. ... If it was there, it was coming from the clipboard, not the ... Private Sub TextBox3_Exit(ByVal Cancel As MSForms.ReturnBoolean) ... MsgBox "Please do not use any spaces in this box" ...
    (microsoft.public.word.vba.beginners)