Jump to content
Server Maintenance This Week. ×

How to restrict number of same related records?


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

Recommended Posts

  • Newbies

Hi-

Can someone please help me figure out how I can limit the number of times a certain field value can be created for each related record? I have no idea if I'm making any sense, but I'll give you an example:

I have two related databases. One is a "Users" database, and the other is a "Football Picks" database. The user makes multiple team picks thoughout the season, but the user should only be able to choose each team 4 times in total. How can I limit that?

Basically, the calculation or validation needs to be able to stop the entry of a value entered into a field belonging to an individual user to only a limited amount of times.

Anyone have any ideas please?

Thanks

Sy

Link to comment
Share on other sites

The PatternCount() function would be helpful.

Also look into the ValueListItems() function, it is good for getting a list of data from a field in related records.

Basically you'll run a PatternCount on the string returned from ValueListItems.

Link to comment
Share on other sites

This topic is 7018 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.