ejpvi Posted June 8, 2010 Posted June 8, 2010 I have a field in my database where I was told is being used improperly by certain users. They need it to match a certain syntax. They want to see if I can prohibit certain characters from being entered. I am familiar with setting up value list validation... but that is for the entire field.... if I just wanted to block "/","L","W","H" from being used anywhere in the field, is that possible?
Kris M Posted June 8, 2010 Posted June 8, 2010 yes its pretty easy using using the Filter() function..
Raybaudi Posted June 8, 2010 Posted June 8, 2010 I am familiar with setting up value list validation... If you want to use the validation option for that field, you can use: IsEmpty ( Filter ( Self ; "/LWH" ) ) But... you have 10, so why not use an OnOjectKeystroke trigger and the function Code ( ) to block those chars ? The script to fire is really simple: If [ ValueCount ( FilterValues ( Code ( Get ( TriggerKeystroke ) ) ; "47¶72¶76¶87" ) ) ] Exit Script [ Result: 0 ] End If
Recommended Posts
This topic is 5282 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now