PC Review


Reply
Thread Tools Rate Thread

Can I restrict the number of entries

 
 
KJM96
Guest
Posts: n/a
 
      10th Nov 2008
Creating an enrollment database. Can I set it up so that a message will
indicate class is filled when it reaches a set number of enrollments?
 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      10th Nov 2008
So you don't care to have a "waiting list", in case one of the enrollees
isn't able to attend?

One approach to limiting enrollment in a class would be to store the class
"capacity" in the record for that class.

"How" really depends on "what" ... what data structure are you using?

Regards

Jeff Boyce
Microsoft Office/Access MVP


"KJM96" <(E-Mail Removed)> wrote in message
news:A34CB337-BABF-4020-B861-(E-Mail Removed)...
> Creating an enrollment database. Can I set it up so that a message will
> indicate class is filled when it reaches a set number of enrollments?



 
Reply With Quote
 
Paul Shapiro
Guest
Posts: n/a
 
      11th Nov 2008
One possibility is to enforce the limit by choosing your primary key for the
enrollment table. If all classes have the same enrollment limit, you could
choose your primary key as the combination of classID,
registrationSequenceNumber. Put a validation rule on
registrationSequenceNumber for something like Between 1 and 29.

But if each class has a different enrollment limit, then you would have to
add the enrollmentLimit as an attribute in the Class table and enforce the
constraint with VBA code in your data entry form.

"KJM96" <(E-Mail Removed)> wrote in message
news:A34CB337-BABF-4020-B861-(E-Mail Removed)...
> Creating an enrollment database. Can I set it up so that a message will
> indicate class is filled when it reaches a set number of enrollments?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
restrict number of entries on subform =?Utf-8?B?R2FyeQ==?= Microsoft Access 3 6th Nov 2006 07:41 PM
Restrict Data Entry to only 4 possible entries ph8 Microsoft Excel Programming 1 21st Mar 2006 03:19 PM
how do i restrict my table to 20 entries (first in first out) =?Utf-8?B?YnJhbmU=?= Microsoft Access External Data 1 21st Feb 2006 11:38 PM
restrict subform to new entries only =?Utf-8?B?TWVyeWw=?= Microsoft Access Forms 5 17th May 2005 04:00 AM
Restrict a column to allow for unique entries only? Gabe Microsoft Excel Worksheet Functions 3 12th Feb 2004 09:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:56 AM.