Determining Maximum Number of Registrations

N

NoMail4AMD64

I'm putting together a simple Access database for a private University
Continuing Education program and have realized my knowledge is
slipping badly.

I want to determine when a class registration has reached the maximum
determined by the facilitator. Ffor the life of me I can not think of
a simple method.

During registration classes and students are entered into a form that
links the two together. I assume that in some fashion I need a query
that "COUNT's" the current number registered for the course but that
value needs to be compared to a maximum value that resides in the
course/class association.

Any suggestions please and thanks.
 
A

Allen Browne

Use DCount() to count the number of matching records.

If you don't have the maximum allowed showing in your form, use DLookup() to
read that value from the table.

DLookup() and DCount() both use similar arguments. For an explanation of how
to use them, see:
Getting a value from a table: DLookup()
at:
http://allenbrowne.com/casu-07.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top