Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Validate two fields to avoid duplicate records


This topic is 7862 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Aloha All

I am trying to create a validation so that duplicate records are not entered.

I have a lunch order database. Each child can order once per month. I want to create a validation that when a second record is entered for a student in the same month a message warns the data entry person.

Any suggestions

Thanks in advance

Link to comment
Share on other sites

Create a calc field Month = Month(OrderDate)

Create a calc field Year = Year(OrderDate)

Create a calc field Combo = ChildID & " " & Month & " " & Year

Create a self join relationship Combo::Combo

Add this validation in field OrderDate and ChildID

If (Count (Self join::ChildID)>0);0;1)

(Note:I don't like how FM handles failed validations)

Link to comment
Share on other sites

This topic is 7862 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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