Greg M Posted March 23, 2004 Posted March 23, 2004 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
-Queue- Posted March 23, 2004 Posted March 23, 2004 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
Greg M Posted March 24, 2004 Author Posted March 24, 2004 Nope, it doesn't use repeating fields. The Events database has a portal that displays names from the related records in the Signups database.
Recommended Posts
This topic is 7619 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 accountSign in
Already have an account? Sign in here.
Sign In Now