fmsavey Posted March 30, 2007 Posted March 30, 2007 I'd like to have the auto enter feature add a "/" character when entering into a date field automatically. Typing "0322" would become "03/22" and then FileMaker would add the year as it normally does. I am keying hundreds of records a day and I am looking to make it more efficient. Reaching for the "/" key is slowing me down. I tried Case ( PatternCount ( GetAsText( date worked ); "/" ) = 0; Replace ( GetAsText ( date worked ); 3; 0; "/"); date worked) but that didn't work. I was surprised that this did not work. What can I do?
Raybaudi Posted March 30, 2007 Posted March 30, 2007 Hi FileMaker validates a date before evaluating an AutoEnter calculation. So you can't place a calc to transform a string like that into a real date. But it's possible if you use a text field.
fmsavey Posted March 30, 2007 Author Posted March 30, 2007 I use the auto enter technique on time fields substituting "." with ":" and "+" with "PM" and this works fine. I was hoping for a similiar experience with the date field. I'll give your suggestion a try!
comment Posted March 31, 2007 Posted March 31, 2007 Note that this will not reverse the order, but skip validation altogether (somewhat similar to entering a date in a custom dialog). You might want to validate the text field by a calculation.
Recommended Posts
This topic is 6508 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