473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Specific input masks

I am trying to create an input mask in Access 2007 where I specify the exact data that can be typed into certain fields but every time I try to do so whatever I type into the input mask shows up in the table's field when I go to put an answer in it.
eg. I would like one particular field to only have the answers 'D' or 'P' typed into it but I can't seem to make an input mask that allows this. I tried the input mask:
"D","P"
but it turns out that typing that into the input mask box makes that appear in the field and doesn't let me type an answer.

Help! :(
Apr 8 '11 #1

✓ answered by NeoPa

Yasmin, there is no facility within the Input Mask specification to allow you to specify a list of acceptable characters. There are various facilities that limit what can be typed in, but if you want to specify which characters (or more precisely which entries) can be accepted then you may want to look at the Validation Rule property instead.

All the details you need of any property can be found by clicking on the property of interest then pressing F1 for context-sensitive help. There's a lot in there, and it should always be your first port of call for simple questions.

5 1907
NeoPa
32,556 Expert Mod 16PB
Yasmin, there is no facility within the Input Mask specification to allow you to specify a list of acceptable characters. There are various facilities that limit what can be typed in, but if you want to specify which characters (or more precisely which entries) can be accepted then you may want to look at the Validation Rule property instead.

All the details you need of any property can be found by clicking on the property of interest then pressing F1 for context-sensitive help. There's a lot in there, and it should always be your first port of call for simple questions.
Apr 8 '11 #2
Rabbit
12,516 Expert Mod 8TB
Or you could use a drop down with the options D and P.
Apr 8 '11 #3
ok, thanks very much NeoPa :)
I feel like a bit of an idiot for not figuring out myself that I should be using validation rule. I've not used Access in over a year though and can't remember at all how to use it.
Apr 8 '11 #4
NeoPa
32,556 Expert Mod 16PB
I'm sure once you start playing with it again it will all come back to you Yasmin. And for the rest, well we're here :-)
Apr 9 '11 #5
yeah I'm getting the hang of it now thankfully. Cheers again :)
Apr 11 '11 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mark Lees | last post by:
I want to create an input mask for a phone number and I would like the area code to always be (801). However, I want the users to be able to edit it if necessary. Would it look like this =...
4
by: David W. Fenton | last post by:
I'm working on a subform where users put in 24-hour time. On their paper forms, they've been accustomed to referring to midnight as 24:00 (instead of as 0:00, which kind of makes sense from a human...
6
by: Regnab | last post by:
Morning All, I'm trying to ensure that when the user enters a number on a form, the database automatically leaves a space after the 3rd number. I've tried to do this using input masks, but when...
0
by: Karen Hill | last post by:
Hello, I've got a question about System.Windows.Forms ( .NET 2.0, C# ) . Other than using the Masked input text box (which is nice, but I need other types of controls to be input masked and...
0
by: Dan | last post by:
Issue making textbox visible based on specific input from a radio button list in an EditItemTemplate I want to setup a gridview that when in edit mode and when the user selects "Other" from a...
1
ADezii
by: ADezii | last post by:
The following characters define an Input Mask: Character - Description 0 - Digit (0 to 9, entry required, plus and minus signs not allowed). 9 - Digit or space (entry not required, plus...
12
by: panjap | last post by:
a few days a go i was kindly helped with the trouble i was having on editing lables wjhere i wanted to change access' messages to my own. Below si the qeustion i set a few days agoa , which worked...
5
by: ezechiel | last post by:
hi everyone.. i read on another forum that it is possible to define multiple input masks for a textbox (for example). There is a textbox field where you can enter the name of a machine. The...
21
by: DanicaDear | last post by:
I've been trying to figure this out for three weeks. I've been sleeping on it. Not getting answers, just losing sleep. ;-) In a table, I have a field COMPANY_EMAIL. In this field I want to...
4
by: Frank Marsella | last post by:
I have programmed several command buttons (0-9) on my form in order to input numbers into a textbox. I have placed a mask of six characters and activated the auto tab feature in the textbox...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.