Jump to content
Sign in to follow this  
FrankNewbie

Is this a calculation?

Recommended Posts

This one's had me stumped for a couple months. It SEEMS like it should be doable, but I can't get it.

I would like to be able to validate ItemID on new assignments such that the same ItemID is never assigned more than once to any given translator (TransName). ItemID and TransName are associated via the ASSIGNMENTS table.

All feedback humbly and gratefully welcomed.

Sample file attached. Names have been changed, etc.

Husk_of_PROJECTS_active.zip

Share this post


Link to post
Share on other sites

See if this helps:

http://www.fmforums.com/forum/showtopic.php?tid/186411/

Share this post


Link to post
Share on other sites

Many thanks for the swift solution, comment!

Your method 1 looks like it will do the job nicely, and without fuss. Exactly the breakthrough I needed! :tigger:

1. In the Appointments table, define a text field, set it to auto-enter a calculated value =

CustID & "|" & GetAsNumber ( AppointmentDate ) & "|" & AppointmentTime

Uncheck the "Do not replace existing value.." option. Set the field's validation to 'Unique value'.

uniqueCalc.fp7.zip (4.38 KB)

Share this post


Link to post
Share on other sites

Comment

Ditto for me. I've started using this technique recently and it is so simple and powerful.

Strength through field-level validation. Interface validation is weak!

Share this post


Link to post
Share on other sites

Interface validation is weak!

True, but field-level validation is annoying and confusing to the user, so it's a dilemma. Probably best to use both, keeping field-level validation as the last line of defense.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.