Input Mask under various conditions

rbinder

rbinder
Local time
Today, 12:35
Joined
Aug 13, 2005
Messages
25
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
 
In this example:

The field that determines the inputmask is called : Field1
The field that has to receive the inputmask is called : Field2

In the "After Update"-code of Field1, place following code:

Code:
If Me.Field1.Value = "OA" Then Me.Field2.InputMask = "LL0000"
If Me.Field1.Value = "OT" Then Me.Field2.InputMask = "LL"
If Me.Field1.Value = "OZ" Then Me.Field2.InputMask = "LLL00L"

I hope you get the idea with this example, good luck!

Greetz,

Seth
 

Users who are viewing this thread

Back
Top Bottom