Yet Another Keypress/input Mask Question For The Forum

Jul 7, 2006

Yea yea I know, another one...
But the way I see is that I haven't asked them all so its ok... :p

Right basically, I only want to allow input of Y N or P into a text field. I thought it would be best to do it with an onkeypress event as I know of no way to block certain characters in a text field with an input mask.. this is what I came up with but it doesnt seem to work...

If Not KeyPress=78 Or Not KeyPress=80 Or Not KeyPress=89 Then KeyPress = 0

Any ideas?

View Replies


ADVERTISEMENT

Input Mask

Apr 26, 2005

HOW DO I DO THE FOLLOWING:

I want to use input mask in my email field i.e the @ must be present but i must be allowed to input values or numbers before and after the @. This did not worked because i have fixed the values: ????@????
thanks

View 2 Replies View Related

Input Mask

May 2, 2005

Dear All,

Is there any way that I can use an input mask to enter serial numbers of softwares.....

the data will be like this...

ABC8F-CHJ68-FH76F-GHF87-67JH5

Thanks in advance


Thanks

View 1 Replies View Related

Input Mask Maybe

Sep 15, 2005

What I have is field called contract number, and its entered as 09-0011, which is ok.

Now I like it to show up in a different field as 090011. I guess my first question can this be done. Or even better how would I do it?

Now your question is. Why don't you put it in correctly the first time, and the answer is we want the number to have a dash.

Any suggestions

Never can be easy for me.

View 3 Replies View Related

Input Mask

Jan 31, 2005

let's say i have a field, in which i store and identity card number. This number may consist up to 7 digits (of which 3 are mandatory) plus 1 letter (mandatory) at the end. Thus a valid identity card number may be the following: 1234567M, 123M

Eventually, since the field must always contain a letter, i set the data type to Text with field size of 8 ... and i set the inout mask as follows:

9999000L (since the first 4 digits are mandatory). With this input mask, if i have an ID Number of 123M, i have to input it as 0000123M.

Although, I would like to have the leading zeros, is it possible that during data entry time, i would simply type 123M, and i will get the zeros automatically, after the field loses the focus, rather than having to type them myself ?

Thank You

View 13 Replies View Related

Input Mask

Oct 18, 2005

Trying to set an input mask to Capitalize the first letter of a surname but also to do this for ie MacDonald or O'Brian? How can i do this?

View 1 Replies View Related

Input Mask

Jul 19, 2006

When you add a new column you can select different data types such as text, memo, currency,...

When I pick currency and typ in 12345 in the column and press tab it automatically puts the € sign behind 12345.....

View 1 Replies View Related

Input Mask Help

Sep 2, 2007

I am trying to create an input mask for a name field. I have Spanish names with two last names separated by a hyphen, a comma after the two last names, a space, and then the First Name a space and the Middle Name. The First Last Name needs to be in all capitals like the example. Example: NARANJO-Ramirez, Jose Luis

Can someone please help me format this mask. One trick is that there aren't always middle names. Since all parts of the name are different lenghts for everybody, I need to have an optional number of characters for each of the four parts of the name.

Thanks for your help.

View 2 Replies View Related

Input Mask

Apr 11, 2005

I have a text box on a form that holds a grid reference, (2 letters and 6 numbers). I have set the box up with an input mask, (>LL000000;0;_). Is there a way that when the user clicks in the box that the cursor will go to the start of the box. At present it goes wherever they click in the box. If they dont notice then the machine starts beeping at them, most annoying!

View 1 Replies View Related

Input Mask HELP!!!!

May 2, 2005

I have created an input mask but it depends what type of currency is..

If Me![Currency Counter] = "1" Then
Me![Serial No].InputMask = "LL00 000000"
Else
If Me![Currency Counter] = "2" Then
Me![Serial No].InputMask = "LL-00000000-L"
endif
endif

The problem is that if for example the currency counter = 2 the serial must be
AA-11111111-A but it is saving AA1111111A and i dont want it to save it like this.

Any help pls...

View 2 Replies View Related

Input Mask

May 12, 2006

I have a text box that has an Input Mask setup. The box is format to be
##-### (00-000;0;). My problem is, when the user clicks in the box it does not start at the beginning, it starts where ever the user clicks inside the box. Is there way to for when you click inside the box it automatically starts at the beginning?

View 2 Replies View Related

Input Mask

May 12, 2006

I have a text box that has an Input Mask setup. The box is format to be
##-### (00-000;0. My problem is, when the user clicks in the box it does not start at the beginning, it starts where ever the user clicks inside the box. Is there way to for when you click inside the box it automatically starts at the beginning?

View 1 Replies View Related

Input Mask For Importing

Feb 25, 2005

I have a table that I copy into daily from a shared Excel spreadsheet. I am trying to minimize the amount of touching up the data needs. What input mask should I use so that a field with four numbers...1234 (for example) will be converted to a nine-digit number with leading zeros (000001234) when the data is imported. I would like the nine-digit number to be saved.

Also, is there a way to have a date field import the date only & ignore any text?

View 2 Replies View Related

Input Mask / Format

May 19, 2005

Hiya everyone,
I'm try to do a database for items with part numbers.
& I want to be able to set the field to only accept data which has two letters at the begining, but any other characters after that (no fixed size).

ie.
part num1: pn047589sdf8m3
part num2: pn6583
part num3: pnfdgmj5973m
part num4: pn-fdgmj-5973m

Is this possible to do?

Cos all I can do at the moment, is to put a fixed number of characters.
ie. is the field size is 30characters
then I'd have to do this:
>LLCCCCCCCCCCCCCCCCCCCCCCCCCCCC

but this isn't good.

I just need something like:
>LL*

* mean any character for as many characters in length.

Adam
BIGmrC

View 2 Replies View Related

Input Mask For Zip Codes

May 23, 2005

I am working on a membership database that only has members from Canada and the United States. In the zipcode field, is it better to have two seaparate fields or is there an input mask that can handle both US and Canadian zip codes.

Thanks in advance.
24t42

View 2 Replies View Related

Input Mask Password Help

Jan 31, 2006

how can i only allow numbers to be entered when i make the input mask password

View 1 Replies View Related

Input Mask Problem

Jan 2, 2008

I have a number field that has three groups of 3 numbers: 123 456 789 or 12 345 678 (8 numbers). When there are only 8 numbers I need to have the first group of number contain 2 numbers and the other two groups to have the other six numbers. If my input mask filled from the right it would solve my problem if the mask was 900 000 000 (filled from the right) but I can't seem to figure this out. Your help is greatly appreciated.

Tyler

View 4 Replies View Related

Multiple Input Mask

Feb 25, 2008

Hi,

Can anyone tell me how I can format my access tables with multiple input masks under one field?

In my table I have formatted my telephone numbers so that they read (xxx) xxx-xxxx which suits our predominantly UK based business telephone numbers, however we also have a lot of Irish numbers which follow a different configuration e.g. (xxxxx) xxxx-xxxx - how can I add this second input mask so that both formats are recognised within the same column/ field?

Many thanks
RHorton

View 2 Replies View Related

Input Mask For Mobile Nos

Mar 25, 2005

Hi,

I am newbie and i need some help how to make an input mask for mobile no, which begins 79 or 99.

Thanks a lot
Andrew

View 5 Replies View Related

Input Mask For Surname With '

Aug 24, 2005

Is it possible to set up an input mask for a form for a surname field so that names will show first letter of name as a capital (easy), as in Smith - but for names like O'Connor, show the first and second letters as capitals? (and, of course, allow the ' to be entered).
Thanks.

View 1 Replies View Related

Input Mask Under Various Conditions

Nov 30, 2005

Greetings,

I am a little stumped in logic again

What I am trying to do is the following

If the value is on field is say "OA" then I need an input code of LL0000 or LL00000 in the next field
If the value is say "OT" then I need an input code of LL etc

What is the best way of going about this.

The code is for stock locations in a warehouse.

~rbinder

View 1 Replies View Related

Text Box Input Mask

May 11, 2006

Hi
I have an text box with an input mask of
>???????? to convert the text entered to capitals

1. Are there any other ways to convert to capitals?
2. With the way i have done the input mask if you click anywhere in the text box the curser starts from there. I would prefer it if no matter where in the text box you clicked the curser starts from the beginning
How do i do this ?

Thanks

View 1 Replies View Related

Input Mask On Textbox

Feb 21, 2005

Hi all,

This should be straightforward, i have an input mask on a textbox as: 00/00/00;0;" " and have the format as: short date. This works but get a problem if the user enters a date say: 33/02/05, I want it to give me an error, it does not it automatically changes it to format 02/05/33. I want the input mask to allow valid previous and present dates but not future. Any help appreciated, thanks in advance,

M-.

View 2 Replies View Related

Input Mask - Message

Mar 9, 2005

Is it possible to change the message that will be displayed when someone enters data that doesn't meet the criteria of an input mask?

Thx,

Lion85heart

View 2 Replies View Related

Custom Input Mask

Mar 23, 2005

Is there a way I can customise my input mask for a purchase order? I would like to have the P/O start with the first 2 letters of the customer followed by the month, day, year, and (if possible) numerical incriment. (Incase there is more than one order from the same customer on one day). EX: CH032305-01 = Custom Homes, February, 23, year 2005, first order

View 8 Replies View Related

Input Mask Problem

Aug 19, 2004

I have 6 test boxes with the following input mask 99;;0 I am trying to force users to enter either 0, 1 or 2 digits. This works fine for the first box but then all the rest give the invalid entry error message no matter what I enter.
Whichever one I enter data in first works and then the rest dont.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved