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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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