Newbies captjase Posted February 11, 2002 Newbies Posted February 11, 2002 Newbie question.. I'm lookin at the time billing template that comes with FMPro5.5 and I would like to validate each record so that the combination of Employee ID and Week Beginning Date is unique i.e. Each employee can only have 1 timesheet for each week - no duplicates. I tried creating a new field (calculation) that was the combo of both of these - but I don't seem to be able to make it unique. Any suggestions, a better way perhaps? Cheers Jase
simon1663 Posted February 11, 2002 Posted February 11, 2002 Well,I did face the same problem in past and realized there is no built-in feature from Filemaker which will resolve the problem. So, I implemented it using a script. At the end of filling a timesheet - user clicks a OK/Done button which does some validations. You will need to make sure that user is not able to jump to another layout though. I am not 100% sure if there is any automated feature from filemaker which will help you to do this. I have tried it with self-join relationship, lookup etc but never got it to work. Hence took the long way of script. Regards, simon1663
Vaughan Posted February 11, 2002 Posted February 11, 2002 Take a look at FileMaker TechInfo Article Number 104191: "Unique Validation of Calculation Field." The article describes validating a calculation field that concatenates "first+last" names, but it's only a short stretch to modify the technique to what you want to do. The TechInfo database is at http://www.filemaker.com/support/techinfo.html
Newbies captjase Posted February 11, 2002 Author Newbies Posted February 11, 2002 Excellent - thanks for your help guys! Really appreciated!! Cheers Jase
Recommended Posts
This topic is 8392 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