Topic:Access 2K InputMasks Remainpoint:0
   
PostTime:12/16/2008 2:59:55 PM FloorTop
Lv is 1
Avatar
Level:
1
Professional point:
0
Experience:
14
Thread:
314
Post:
924
Total online time:
14M
Joined date:
4/24/2007 6:51:00 AM
Last Visit:
12/17/2008 12:02:44 AM
Status:
Offline
Does anyone know of an InputMasks (or another way) that I can do the following in Access 2K:

1) Prevent users from entering "spaces" in a field. For ex. I don't want "John Doe" but will allow "JohnDoe"


2) Prevent users from entering commas(,). Instead, it would be a semicolon(;)
 
Love my life!!
     
   
Gender PostTime:12/16/2008 3:40:25 PM Point:0 | Floor# 1
Lv is 1
portrait
Level:
1
Professional point:
94
Experience:
1
Thread:
261
Post:
990
Total online time:
1M
Joined date:
4/28/2007 11:41:00 PM
Last Visit:
12/17/2008 12:44:11 AM
Status:
Online
What are the values they are typing. I'm not asking for the exact values but use ### if they're numbers and AAAAA if alpha.
 
     
   
Gender PostTime:12/16/2008 6:40:23 PM Point:0 | Floor# 2
Lv is 1
portrait
Level:
1
Professional point:
78
Experience:
9
Thread:
286
Post:
947
Total online time:
9M
Joined date:
4/29/2007 12:17:00 AM
Last Visit:
12/16/2008 11:26:07 PM
Status:
Offline
Quote:
Originally Posted by OBP
I don't think that format masks can prevent characters being entered, it can control them.
If you have a field that requires a semicolon at a specifid point the mask can force it's entry and it's position.
Also data validation may not be able to control what you are trying to do with no spaces.

Visual Basic however can be used to test the field after entry and if the Not allowed characters are found they either be deleted or replaced.
You could also in the case of the name with no paces have a first name field and surname field and then concatenate them for the actual table entry.

I would like to give both of your suggestions a shot. Kindly let me know how to go about doing it.
 
     
   
Gender PostTime:12/16/2008 10:25:32 PM Point:0 | Floor# 3
Lv is 1
portrait
Level:
1
Professional point:
46
Experience:
1
Thread:
287
Post:
926
Total online time:
1M
Joined date:
4/28/2007 11:03:00 PM
Last Visit:
12/17/2008 12:22:57 AM
Status:
Offline
Did it do what you wanted?
 
     
   
Gender PostTime:12/16/2008 11:19:03 PM Point:0 | Floor# 4
Lv is 1
portrait
Level:
1
Professional point:
66
Experience:
1
Thread:
278
Post:
1007
Total online time:
1M
Joined date:
4/28/2007 11:31:00 PM
Last Visit:
12/16/2008 11:35:07 PM
Status:
Online
Been away on vacation....

Thanks OBP for the sample and prodsupptech for the advice!!!
 
     
1

Sorry, you are not login, click here to login

 

About us | Advertise | Contact us | Partner | Bug Report|Suggesting box|Donation
Home | Forum | Affiliate program| Remote help | Setting | Search | Document | Help | Download|Message

 

Start new topicAdvanced search
Your location: Database -> Access