Link to home
Start Free TrialLog in
Avatar of Reyesrj
ReyesrjFlag for Guam

asked on

MS Access Input Mask

In MS Access for the input mask:
How do you insert a double space where the user only enters numbers or letters and not have to manually enter a double space.

EX:
02  28  2011

I created a form and inserted a picture (jpg) of a document that needs to be filled-out.  The document has boxes so I need to space the numbers or letters to fit in the box.  I know how to enter single spaces but not double.  In the example above when it comes to double spaces the user is forced to hit the space bar twice.  For single spacing, the spaces are entered automatically by Access so it’s continues typing.

Any help would be appreciated.
Avatar of kpltechgroup
kpltechgroup

2 spaces your could do either:

"(PressSpaceBarTwice)"

or

\(PressSpacebar}\(PressSpacebar)

Both of these would perform the same results
C\ C\ \ C\ \ C

or

C" "C" "C" "C

For more info see here http://bytes.com/topic/access/answers/202491-help-input-mask-spce
##"  "##"  "##

I think would be the exact mask
Avatar of Reyesrj

ASKER

If I enter "0\ 0\ 0\ 0" into the input mask this is what happens:

I type: "1234"
I get: "1 2 3 4"

No need to type the spaces.

The examples you gave makes it mandatory to type a space.  No other characters can be entered.  In my example Access enters the space for you after each character. So I type only "1234" (without typing a space) and the results are "1 2 3 4".  How would you apply this to a double space?  Entering two spaces after the \ or between two quotes I get:

I type: "1 2 3 4"
I get: "1  2  3  4"
so you want someone to enter 1234 and have the output be 1..2..3..4?

. = space
Avatar of Reyesrj

ASKER

kpltechgroup

Yes, it's the double space I'm having trouble with.  This would make data input much faster.
I dont have Access here at work

so you can use "  " in the input mask you have to enclose the double space in  quotes
try input mask
00"  "00"  "00
ASKER CERTIFIED SOLUTION
Avatar of kpltechgroup
kpltechgroup

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Reyesrj

ASKER

Tried it all.  It still requires the user to enter a space.  when a single space is entered it inserts a double space.
Avatar of Reyesrj

ASKER

Thanks any way.