PC Review


Reply
Thread Tools Rate Thread

Determining Maximum Number of Registrations

 
 
NoMail4AMD64@NoISP4Now.org
Guest
Posts: n/a
 
      11th Nov 2006
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.
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      11th Nov 2006
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

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.



 
Reply With Quote
 
NoMail4AMD64@NoISP4Now.org
Guest
Posts: n/a
 
      11th Nov 2006
Thank you Allen.

On Sat, 11 Nov 2006 13:00:50 +0800, "Allen Browne"
<(E-Mail Removed)> wrote:

>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

 
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
Maximum record size and maximum number of records Tom_T Microsoft Access 3 10th Feb 2009 08:09 PM
Programmatically determining the maximum attachment size Mike Loux Microsoft Outlook Interoperability 0 14th Aug 2008 02:54 PM
determining slide number and object/shape number Candace Microsoft Powerpoint 4 6th May 2008 03:52 PM
Determining Maximum Number of Registrations NoMail4AMD64@NoISP4Now.org Microsoft Access Getting Started 2 11th Nov 2006 10:51 AM
The number name 'System.Web.UI.WebControls' contains more than the maximum number of prefixes. The maximum is 3. mayur Microsoft ASP .NET 2 2nd Jul 2004 11:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:55 AM.