Solved

MS Access Input Mask

Posted on 2011-02-28
10
529 Views
Last Modified: 2012-05-11
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.
0
Comment
Question by:Reyesrj
  • 6
  • 4
10 Comments
 
LVL 5

Expert Comment

by:kpltechgroup
ID: 35002401
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
0
 
LVL 5

Expert Comment

by:kpltechgroup
ID: 35002416
##"  "##"  "##

I think would be the exact mask
0
 

Author Comment

by:Reyesrj
ID: 35003082
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"
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 5

Expert Comment

by:kpltechgroup
ID: 35003115
so you want someone to enter 1234 and have the output be 1..2..3..4?

. = space
0
 

Author Comment

by:Reyesrj
ID: 35003227
kpltechgroup

Yes, it's the double space I'm having trouble with.  This would make data input much faster.
0
 
LVL 5

Expert Comment

by:kpltechgroup
ID: 35003238
I dont have Access here at work

so you can use "  " in the input mask you have to enclose the double space in  quotes
0
 
LVL 5

Expert Comment

by:kpltechgroup
ID: 35003582
try input mask
00"  "00"  "00
0
 
LVL 5

Accepted Solution

by:
kpltechgroup earned 500 total points
ID: 35003601
Oh and try

99CC99CC99CC;0;
0
 

Author Comment

by:Reyesrj
ID: 35052913
Tried it all.  It still requires the user to enter a space.  when a single space is entered it inserts a double space.
0
 

Author Closing Comment

by:Reyesrj
ID: 35079473
Thanks any way.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question