March 23, 200421 yr 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
March 23, 200421 yr 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
March 24, 200421 yr Author Nope, it doesn't use repeating fields. The Events database has a portal that displays names from the related records in the Signups database.
Create an account or sign in to comment