Re: Imput Mask creating a problem in field for input on form

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Al
Thanks for your replies. Good lateral thinking! The click now always goes
to the far left of the field. Nice one!
I tried the Validation rule... it works. I also tried the code you sent but
get the error "Compile Error: Block If without End If" . ..this opens up the
debugger so there's something there VBA doesn't like.

I've just changed the onclick event to your new suggestion. Before it
was:[VRM].SelLength=7

Thanks Al

Rich


"Al Camp" wrote:

> Also... Copy and Paste the code you wrote on the OnClick event into your
> reply.
> hth
> Al Camp
> Candia Computer Consulting - Candia NH
> http://home.comcast.net/~cccsolutions
>
> "Al Camp" <anon@xxxxxxxx> wrote in message
> news:uG2xBsqwFHA.1148@xxxxxxxxxxxxxxxxxxxxxxx
> > Rich,
> > Use the OnClick event for your date field with this code (ex. ShortDate
> > field)
> > [YourField].SelLength = 8
> > Adjust the 8 to suit your format. That should select the whole date
> > format if you mouse click into the field, and tabbing will work as always.
> > --
> > hth
> > Al Camp
> > Candia Computer Consulting - Candia NH
> > http://home.comcast.net/~cccsolutions
> >
> > "Rich1234" <Rich1234@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:591B2F02-6DA5-49F8-AA2C-1DD4E11CEAF9@xxxxxxxxxxxxxxxx
> >> Hi
> >>
> >> I'm using an input mask on a field. The mask is
> >>>Aaaaaaa (so the last 6 characters are optional.)
> >> The mask is set up so that the underscore character appears for every
> >> character in the mask, denoting the field length (this includes the
> >> optional
> >> characters.)
> >> The problem is this: if a user clicks on the field on a form (rather
> >> than
> >> tabbing to it,) if they don't click on the very far left of the field,
> >> the
> >> cursor "lands" somewhere between the start and end of the field which is
> >> very
> >> fiddly for data input. The user will either have to use the left arrow
> >> key
> >> to go to the start of the field... or, even worse, they might not even
> >> realise that they're not at the start of the field and type in a short
> >> entry
> >> (maybe 3 characters) midway in the field!
> >>
> >> How can I prevent this? Hopefully users will tab to the field but I need
> >> to
> >> sort this so they can't click somewhere in the middle.
> >>
> >> Also I've just found that when you use "a" in a mask, it permits a space
> >> to
> >> be entered! Is there any way that you can specify a mask for an optional
> >> character (either letter or digit) so that it cannot be a space? I need
> >> to
> >> ensure a user doesn't enter any gaps between characters in the field.
> >>
> >> Can you help?
> >> TIA if you can
> >>
> >> Rich
> >
> >
>
>
>
.



Relevant Pages

  • Re: string tokenizing
    ... My understanding is that mask() ... the character doesn't fit _any_ classification. ... Since I don't care to ignore those compilers, ...
    (comp.lang.cpp)
  • Re: possible overflow?
    ... If you AND 'input' with 'mask', the result is zero when the Nth bit ... If you add one to that, you get the ASCII value of the character 1. ... equally fast code for the clear way, and it might even be faster. ...
    (comp.programming)
  • Re: My predictions for Spidey and _Civil War_ --
    ... and replace them with new ones, the icon is still there. ... Does this apply to Superman / Kal El / Clark Kent? ... people behind the mask that are important. ... Is Superman a Marvel character in the DC Universe? ...
    (rec.arts.comics.marvel.universe)
  • Re: text in unattached label
    ... Use the high ascii character Alt-160. ... This should create a what appears to be a "space" but is really a blank High Ascii ... Candia Computer Consulting - Candia NH ... space between each number until you fill the label width left to right. ...
    (microsoft.public.access.formscoding)
  • Prc for Mask???
    ... presitge class out there that would be suitable for a follower of mask. ... A little bit of background on my character. ... Or mabey a prestige class ...
    (rec.games.frp.dnd)