Jump to content

Event Sign-ups


Greg M
 Share

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

Recommended Posts

I have 2 related databases that I use to allow people to sign up for weekend activities at my school. Signups is the database for public use. Each signup is one record, containing the person's name, and the activity they want to attend (selected from a dropdown menu.) Events is the admin database that has one activity per record, containing the event name, date, capacity, etc. There is also a portal to Signups that lists the names of those who have signed up. Here's my question: when a user goes into Signups, selects the activity they want, and click "Sign up" how can I have a script check to see that the maximum capacity for that activity hasn't been exceeded?

Version: v6.x

Link to comment
Share on other sites

The Events records contain a repeating field of the participants with a Capacity field, correct? If so, just use a relationship between the activity id in Signups and Events.

If [Count(rel::Attendees) = rel::Capacity]

Show Message ["I'm sorry, but this activity is full."]

Halt Script

End If

Link to comment
Share on other sites

This topic is 6514 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
 Share

×
×
  • Create New...

Important Information

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