Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2008

Tip: Looking for answers? Try searching our database.

Limit on number of records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tazzy - 21 May 2008 09:36 GMT
I have limited experience of using subforms and coding, so I wonder if
someone can help me with this one please.

I have a database with 2 tables; one for courses, one for students. What I
want to be able to do is have a form for my courses and include a subform to
show the number of students on that course. I would like to limit the number
of places available on each course and to have only that number of fields
showing on the subform. In other words; if there are any spaces, I will have
empty fields on that form. I have to be able to delete a student's details if
they drop out of the course.

As always, I would be grateful for any advice offered.

Thanks,

Tazzy
Jeff Boyce - 21 May 2008 13:29 GMT
I think you have something missing...

If you have Students and you have Courses, don't you also have "Enrollments"
(Student x Course combinations)?

While a Course might have a limited number of places, you could count the
number of Enrollments using that Course to see if you've reached capacity.

Signature

Regards

Jeff Boyce
www.InformationFutures.net

Microsoft Office/Access MVP
http://mvp.support.microsoft.com/

Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

> I have limited experience of using subforms and coding, so I wonder if
> someone can help me with this one please.
[quoted text clipped - 12 lines]
>
> Tazzy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.